summaryrefslogtreecommitdiffstats
path: root/Documentation/isdn
diff options
context:
space:
mode:
authorPeter Oberparleiter <oberpar@linux.ibm.com>2018-09-13 13:00:00 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-11-04 14:51:51 +0100
commit9277b65e04d602dfee4a24a14c3587496ea35b89 (patch)
tree5cc7d59aa0b9a76adb849c4b9597fe8f8ab99958 /Documentation/isdn
parente266c397e724e1fec9439570236e66bb11f22e9e (diff)
downloadlinux-stable-9277b65e04d602dfee4a24a14c3587496ea35b89.tar.gz
linux-stable-9277b65e04d602dfee4a24a14c3587496ea35b89.tar.bz2
linux-stable-9277b65e04d602dfee4a24a14c3587496ea35b89.zip
vmlinux.lds.h: Fix linker warnings about orphan .LPBX sections
[ Upstream commit 52c8ee5bad8f33d02c567f6609f43d69303fc48d ] Enabling both CONFIG_LD_DEAD_CODE_DATA_ELIMINATION=y and CONFIG_GCOV_PROFILE_ALL=y results in linker warnings: warning: orphan section `.data..LPBX1' being placed in section `.data..LPBX1'. LD_DEAD_CODE_DATA_ELIMINATION adds compiler flag -fdata-sections. This option causes GCC to create separate data sections for data objects, including those generated by GCC internally for gcov profiling. The names of these objects start with a dot (.LPBX0, .LPBX1), resulting in section names starting with 'data..'. As section names starting with 'data..' are used for specific purposes in the Linux kernel, the linker script does not automatically include them in the output data section, resulting in the "orphan section" linker warnings. Fix this by specifically including sections named "data..LPBX*" in the data section. Reported-by: Stephen Rothwell <sfr@canb.auug.org.au> Tested-by: Stephen Rothwell <sfr@canb.auug.org.au> Tested-by: Arnd Bergmann <arnd@arndb.de> Acked-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Peter Oberparleiter <oberpar@linux.ibm.com> Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'Documentation/isdn')
0 files changed, 0 insertions, 0 deletions