This option has side effects. It also tells the compiler not to generate these checks in the first place. The checks call abort() which doesn't exist in our environment. This patch gets rid of linker errors due to missing abort() in the 0.9 SDK. Change-Id: Ibc5aeb5458d0bded714c9c074cdf08112733428b Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
22 lines
703 B
Makefile
22 lines
703 B
Makefile
cflags-y += $(call cc-option,-ffunction-sections,) $(call cc-option,-fdata-sections,)
|
|
|
|
# Without this (poorly named) option, compiler may generate undefined
|
|
# references to abort().
|
|
# See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63691
|
|
cflags-y += $(call cc-option,-fno-delete-null-pointer-checks)
|
|
|
|
cflags-$(CONFIG_ARC_STACK_CHECKING) = $(call cc-option,-fomit-frame-pointer)
|
|
cflags-$(CONFIG_LTO) = $(call cc-option,-flto,)
|
|
|
|
include $(srctree)/arch/$(ARCH)/soc/$(SOC_PATH)/Makefile
|
|
|
|
KBUILD_CFLAGS += $(cflags-y)
|
|
KBUILD_CXXFLAGS += $(cflags-y)
|
|
|
|
soc-cxxflags ?= $(soc-cflags)
|
|
soc-aflags ?= $(soc-cflags)
|
|
KBUILD_CFLAGS += $(soc-cflags)
|
|
KBUILD_CXXFLAGS += $(soc-cxxflags)
|
|
KBUILD_AFLAGS += $(soc-aflags)
|
|
|