diff options
Diffstat (limited to 'Makefile.inc')
-rw-r--r-- | Makefile.inc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Makefile.inc b/Makefile.inc index 4add1957d4..c0beddace3 100644 --- a/Makefile.inc +++ b/Makefile.inc @@ -278,6 +278,8 @@ CFLAGS_common += -Wstrict-aliasing -Wshadow CFLAGS_common += -fno-common -ffreestanding -fno-builtin -fomit-frame-pointer CFLAGS_common += -ffunction-sections -fdata-sections +LDFLAGS_common := --gc-sections -nostdlib -nostartfiles -static --emit-relocs + ifeq ($(CONFIG_COMPILER_GCC),y) # cf. commit f69a99db (coreboot: x86: enable gc-sections) CFLAGS_common += -Wno-unused-but-set-variable |