OSDN Git Service

kbuild: -ffunction-sections fix for archs with conflicting sections
authorNicholas Piggin <npiggin@gmail.com>
Wed, 14 Sep 2016 02:24:03 +0000 (12:24 +1000)
committer0ranko0P <ranko0p@outlook.com>
Sat, 7 Dec 2019 08:37:11 +0000 (16:37 +0800)
commitd3794b4cf4c5d561d35f206dca9f7fe46ff241e7
treedb533352cc1c7a8f43c6671a7bf6b6def3e9311f
parent7f24b15a610ad7a42a2259718efcb8f108ab119a
kbuild: -ffunction-sections fix for archs with conflicting sections

Enabling -ffunction-sections modified the generic linker script to
pull .text.* sections into regular TEXT_TEXT section, conflicting
with some architectures. Revert that change and require archs that
enable the option to ensure they have no conflicting section names,
and do the appropriate merging.

Reported-by: Guenter Roeck <linux@roeck-us.net>
Tested-by: Guenter Roeck <linux@roeck-us.net>
Fixes: b67067f1176d ("kbuild: allow archs to select link dead code/data elimination")
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michal Marek <mmarek@suse.com>
arch/Kconfig
include/asm-generic/vmlinux.lds.h