diff options
| author | Nathan Chancellor <nathan@kernel.org> | 2024-02-07 17:15:03 -0700 |
|---|---|---|
| committer | Heiko Carstens <hca@linux.ibm.com> | 2024-02-14 13:50:53 +0100 |
| commit | 55cce52f1cec914870a12e8e9f82659037648cb8 (patch) | |
| tree | 6bdf20e611e6fc9c476c0bb012896ba3fdf1f5e9 /arch/s390/include/asm/bug.h | |
| parent | s390: select CONFIG_ARCH_WANT_LD_ORPHAN_WARN (diff) | |
| download | linux-55cce52f1cec914870a12e8e9f82659037648cb8.tar.gz linux-55cce52f1cec914870a12e8e9f82659037648cb8.zip | |
s390: link vmlinux with '-z notext'
ld.bfd defaults to '-z notext' (although it is customizable with the
'--enable-textrel-check' configure option) but ld.lld defaults to '-z
text', which causes issues with building the kernel due to the presence
of dynamic relocations in sections that are not writable.
ld.lld: error: relocation R_390_64 cannot be used against local symbol; recompile with -fPIC
Add '-z notext' to avoid these errors, as this is expected, which
matches other architectures.
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
Tested-by: Justin Stitt <justinstitt@google.com>
Reviewed-by: Fangrui Song <maskray@google.com>
Link: https://lore.kernel.org/r/20240207-s390-lld-and-orphan-warn-v1-11-8a665b3346ab@kernel.org
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Diffstat (limited to 'arch/s390/include/asm/bug.h')
0 files changed, 0 insertions, 0 deletions
