Update
This commit is contained in:
parent
8053ace047
commit
74ebc70c0a
2 changed files with 5 additions and 4 deletions
|
@ -23,15 +23,15 @@ $(eval $(call DEFAULT_VAR,LD,ld))
|
||||||
# User controllable CFLAGS.
|
# User controllable CFLAGS.
|
||||||
CFLAGS ?= -O2 -g -Wall -Wextra -Wpedantic -pipe
|
CFLAGS ?= -O2 -g -Wall -Wextra -Wpedantic -pipe
|
||||||
|
|
||||||
|
# User controllable preprocessor flags. We set none by default.
|
||||||
|
CPPFLAGS ?=
|
||||||
|
|
||||||
# User controllable nasm flags.
|
# User controllable nasm flags.
|
||||||
NASMFLAGS ?= -F dwarf -g
|
NASMFLAGS ?= -F dwarf -g
|
||||||
|
|
||||||
# User controllable linker flags. We set none by default.
|
# User controllable linker flags. We set none by default.
|
||||||
LDFLAGS ?=
|
LDFLAGS ?=
|
||||||
|
|
||||||
# User controllable preprocessor flags. We set none by default.
|
|
||||||
CPPFLAGS ?=
|
|
||||||
|
|
||||||
# Internal C flags that should not be changed by the user.
|
# Internal C flags that should not be changed by the user.
|
||||||
override CFLAGS += \
|
override CFLAGS += \
|
||||||
-I. \
|
-I. \
|
||||||
|
|
|
@ -45,8 +45,9 @@ SECTIONS
|
||||||
*(.bss .bss.*)
|
*(.bss .bss.*)
|
||||||
} :data
|
} :data
|
||||||
|
|
||||||
/* Discard notes since they may cause issues on some hosts. */
|
/* Discard .note.* and .eh_frame since they may cause issues on some hosts. */
|
||||||
/DISCARD/ : {
|
/DISCARD/ : {
|
||||||
|
*(.eh_frame)
|
||||||
*(.note .note.*)
|
*(.note .note.*)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue