This commit is contained in:
mintsuki 2022-08-15 21:55:56 +02:00
parent 8053ace047
commit 74ebc70c0a
2 changed files with 5 additions and 4 deletions

View file

@ -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. \

View file

@ -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.*)
} }
} }