2015-09-02 05:33:00 +08:00
|
|
|
cflags-y += $(call cc-option,-ffunction-sections,) $(call cc-option,-fdata-sections,)
|
|
|
|
arch-$(CONFIG_LTO) = $(call cc-option,-flto,)
|
|
|
|
arch-$(CONFIG_CPU_ARCEM4) = $(call cc-option,-mARCv2EM) \
|
|
|
|
$(call cc-option,-mav2em,) $(call cc-option,-mno-sdata)
|
2015-06-20 21:23:14 +08:00
|
|
|
|
2015-10-11 19:22:22 +08:00
|
|
|
ifeq ($(CONFIG_STACK_CANARIES),y)
|
|
|
|
cflags-y += $(call cc-option,-fstack-protector-all,)
|
|
|
|
else
|
|
|
|
cflags-y += $(call cc-option,-fno-stack-protector,)
|
|
|
|
endif
|
|
|
|
|
2015-09-02 05:33:00 +08:00
|
|
|
KBUILD_CFLAGS += $(arch-y) $(cflags-y)
|
|
|
|
KBUILD_AFLAGS += $(arch-y)
|