Makefile (dd5806ede3d71b7577d1d9ec853755709b6b40fa) Makefile (e85d1d65cd8a9083040e280d172eba762875f8f1)
1# SPDX-License-Identifier: GPL-2.0
2VERSION = 4
3PATCHLEVEL = 18
4SUBLEVEL = 0
5EXTRAVERSION =
6NAME = Merciless Moray
7
8# *DOCUMENTATION*

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

785endif
786
787# We trigger additional mismatches with less inlining
788ifdef CONFIG_DEBUG_SECTION_MISMATCH
789KBUILD_CFLAGS += $(call cc-option, -fno-inline-functions-called-once)
790endif
791
792ifdef CONFIG_LD_DEAD_CODE_DATA_ELIMINATION
1# SPDX-License-Identifier: GPL-2.0
2VERSION = 4
3PATCHLEVEL = 18
4SUBLEVEL = 0
5EXTRAVERSION =
6NAME = Merciless Moray
7
8# *DOCUMENTATION*

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

785endif
786
787# We trigger additional mismatches with less inlining
788ifdef CONFIG_DEBUG_SECTION_MISMATCH
789KBUILD_CFLAGS += $(call cc-option, -fno-inline-functions-called-once)
790endif
791
792ifdef CONFIG_LD_DEAD_CODE_DATA_ELIMINATION
793KBUILD_CFLAGS_KERNEL += $(call cc-option,-ffunction-sections,)
794KBUILD_CFLAGS_KERNEL += $(call cc-option,-fdata-sections,)
793KBUILD_CFLAGS_KERNEL += -ffunction-sections -fdata-sections
794LDFLAGS_vmlinux += --gc-sections
795endif
796
797# arch Makefile may override CC so keep this after arch Makefile is included
798NOSTDINC_FLAGS += -nostdinc -isystem $(shell $(CC) -print-file-name=include)
799
800# warn about C99 declaration after statement
801KBUILD_CFLAGS += $(call cc-option,-Wdeclaration-after-statement,)
802

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

852KBUILD_AFLAGS += $(ARCH_AFLAGS) $(KAFLAGS)
853KBUILD_CFLAGS += $(ARCH_CFLAGS) $(KCFLAGS)
854
855# Use --build-id when available.
856LDFLAGS_BUILD_ID := $(call ld-option, --build-id)
857KBUILD_LDFLAGS_MODULE += $(LDFLAGS_BUILD_ID)
858LDFLAGS_vmlinux += $(LDFLAGS_BUILD_ID)
859
795endif
796
797# arch Makefile may override CC so keep this after arch Makefile is included
798NOSTDINC_FLAGS += -nostdinc -isystem $(shell $(CC) -print-file-name=include)
799
800# warn about C99 declaration after statement
801KBUILD_CFLAGS += $(call cc-option,-Wdeclaration-after-statement,)
802

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

852KBUILD_AFLAGS += $(ARCH_AFLAGS) $(KAFLAGS)
853KBUILD_CFLAGS += $(ARCH_CFLAGS) $(KCFLAGS)
854
855# Use --build-id when available.
856LDFLAGS_BUILD_ID := $(call ld-option, --build-id)
857KBUILD_LDFLAGS_MODULE += $(LDFLAGS_BUILD_ID)
858LDFLAGS_vmlinux += $(LDFLAGS_BUILD_ID)
859
860ifdef CONFIG_LD_DEAD_CODE_DATA_ELIMINATION
861LDFLAGS_vmlinux += $(call ld-option, --gc-sections,)
862endif
863
864ifeq ($(CONFIG_STRIP_ASM_SYMS),y)
865LDFLAGS_vmlinux += $(call ld-option, -X,)
866endif
867
868# insure the checker run with the right endianness
869CHECKFLAGS += $(if $(CONFIG_CPU_BIG_ENDIAN),-mbig-endian,-mlittle-endian)
870
871# the checker needs the correct machine size

--- 868 unchanged lines hidden ---
860ifeq ($(CONFIG_STRIP_ASM_SYMS),y)
861LDFLAGS_vmlinux += $(call ld-option, -X,)
862endif
863
864# insure the checker run with the right endianness
865CHECKFLAGS += $(if $(CONFIG_CPU_BIG_ENDIAN),-mbig-endian,-mlittle-endian)
866
867# the checker needs the correct machine size

--- 868 unchanged lines hidden ---