Makefile (1241eb8f136bf3ea409f61590e7663465906d158) Makefile (dfec072ecd35ba6ecad2d51dde325253ac9a2936)
1# Unified Makefile for i386 and x86_64
2
3# select defconfig based on actual architecture
4ifeq ($(ARCH),x86)
5 KBUILD_DEFCONFIG := i386_defconfig
6else
7 KBUILD_DEFCONFIG := $(ARCH)_defconfig
8endif

--- 67 unchanged lines hidden (view full) ---

76 stackp-y := -fstack-protector
77 stackp-$(CONFIG_CC_STACKPROTECTOR_ALL) += -fstack-protector-all
78 KBUILD_CFLAGS += $(stackp-y)
79 else
80 $(warning stack protector enabled but no compiler support)
81 endif
82endif
83
1# Unified Makefile for i386 and x86_64
2
3# select defconfig based on actual architecture
4ifeq ($(ARCH),x86)
5 KBUILD_DEFCONFIG := i386_defconfig
6else
7 KBUILD_DEFCONFIG := $(ARCH)_defconfig
8endif

--- 67 unchanged lines hidden (view full) ---

76 stackp-y := -fstack-protector
77 stackp-$(CONFIG_CC_STACKPROTECTOR_ALL) += -fstack-protector-all
78 KBUILD_CFLAGS += $(stackp-y)
79 else
80 $(warning stack protector enabled but no compiler support)
81 endif
82endif
83
84# Don't unroll struct assignments with kmemcheck enabled
85ifeq ($(CONFIG_KMEMCHECK),y)
86 KBUILD_CFLAGS += $(call cc-option,-fno-builtin-memcpy)
87endif
88
84# Stackpointer is addressed different for 32 bit and 64 bit x86
85sp-$(CONFIG_X86_32) := esp
86sp-$(CONFIG_X86_64) := rsp
87
88# do binutils support CFI?
89cfi := $(call as-instr,.cfi_startproc\n.cfi_rel_offset $(sp-y)$(comma)0\n.cfi_endproc,-DCONFIG_AS_CFI=1)
90# is .cfi_signal_frame supported too?
91cfi-sigframe := $(call as-instr,.cfi_startproc\n.cfi_signal_frame\n.cfi_endproc,-DCONFIG_AS_CFI_SIGNAL_FRAME=1)

--- 94 unchanged lines hidden ---
89# Stackpointer is addressed different for 32 bit and 64 bit x86
90sp-$(CONFIG_X86_32) := esp
91sp-$(CONFIG_X86_64) := rsp
92
93# do binutils support CFI?
94cfi := $(call as-instr,.cfi_startproc\n.cfi_rel_offset $(sp-y)$(comma)0\n.cfi_endproc,-DCONFIG_AS_CFI=1)
95# is .cfi_signal_frame supported too?
96cfi-sigframe := $(call as-instr,.cfi_startproc\n.cfi_signal_frame\n.cfi_endproc,-DCONFIG_AS_CFI_SIGNAL_FRAME=1)

--- 94 unchanged lines hidden ---