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.
CFLAGS ?= -O2 -g -Wall -Wextra -Wpedantic -pipe
# User controllable preprocessor flags. We set none by default.
CPPFLAGS ?=
# User controllable nasm flags.
NASMFLAGS ?= -F dwarf -g
# User controllable linker flags. We set none by default.
LDFLAGS ?=
# User controllable preprocessor flags. We set none by default.
CPPFLAGS ?=
# Internal C flags that should not be changed by the user.
override CFLAGS += \
-I. \

View file

@ -45,8 +45,9 @@ SECTIONS
*(.bss .bss.*)
} :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/ : {
*(.eh_frame)
*(.note .note.*)
}
}