aboutsummaryrefslogtreecommitdiff
path: root/arch/x86
diff options
context:
space:
mode:
authorGravatar David Gow <davidgow@google.com> 2022-05-26 11:54:02 -0700
committerGravatar Richard Weinberger <richard@nod.at> 2022-07-17 23:14:34 +0200
commit99ac1e2371a562c953af1c276ef7dc373ee263a6 (patch)
treecce73af0dca77fb7526523cd47ab97e93cd5d1d5 /arch/x86
parentx86/um: Kconfig: Fix indentation (diff)
downloadlinux-99ac1e2371a562c953af1c276ef7dc373ee263a6.tar.gz
linux-99ac1e2371a562c953af1c276ef7dc373ee263a6.tar.bz2
linux-99ac1e2371a562c953af1c276ef7dc373ee263a6.zip
arch: um: Fix build for statically linked UML w/ constructors
If CONFIG_CONSTUCTORS is enabled on a statically linked (CONFIG_STATIC_LINK=y) build of UML, the build fails due to the .eh_frame section being both used and discarded: ERROR:root:`.eh_frame' referenced in section `.text' of /usr/lib/gcc/x86_64-linux-gnu/11/crtbeginT.o: defined in discarded section `.eh_frame' of /usr/lib/gcc/x86_64-linux-gnu/11/crtbeginT.o `.eh_frame' referenced in section `.text' of /usr/lib/gcc/x86_64-linux-gnu/11/crtbeginT.o: defined in discarded section `.eh_frame' of /usr/lib/gcc/x86_64-linux-gnu/11/crtbeginT.o Instead, keep the .eh_frame section, as we do in dyn.lds.S for dynamically linked UML. This can be reproduced with: ./tools/testing/kunit/kunit.py run --kconfig_add CONFIG_STATIC_LINK=y --kconfig_add CONFIG_GCOV_KERNEL=y --kconfig_add CONFIG_DEBUG_FS=y Signed-off-by: David Gow <davidgow@google.com> Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'arch/x86')
0 files changed, 0 insertions, 0 deletions