Comments
Patch
===================================================================
@@ -229,11 +229,14 @@
fi; rm -rf "$$TMP")
cc-option= $(call try-run,\
-$(CC) $(1) -S -xc /dev/null -o "$$TMP", $(1), $(2))
+$(CC) $(1) -nostdlib -xc /dev/null -o "$$TMP", $(1), $(2))
+# official work around for "," in lists
+comma:=,
STACKPROTECT += $(call cc-option, -fno-stack-protector,)
+BUILDID_FLAG += $(call cc-option, -Wl$(comma)--build-id=none,)
-CFLAGS = $(STACKPROTECT) $(INCLUDES) -Os -nostdinc
+CFLAGS = $(STACKPROTECT) $(BUILDID_FLAG) $(INCLUDES) -Os -nostdinc
CFLAGS += -nostdlib -Wall -Wundef -Wstrict-prototypes -Wmissing-prototypes
CFLAGS += -Wwrite-strings -Wredundant-decls -Wno-trigraphs
CFLAGS += -Wstrict-aliasing -Wshadow
Hi, This patch brings a buildtarget feature over to Kconfig: Use --build-id=none to avoid spurious sections to end up in the object files, if it exists. If not, do nothing (and hope for the best) Signed-off-by: Patrick Georgi <patrick.georgi@coresystems.de>