linux-stable/arch/s390/kernel/vdso64
Nathan Chancellor cc859e6a61 s390/vdso: drop '-fPIC' from LDFLAGS
[ Upstream commit 0628c03934 ]

'-fPIC' as an option to the linker does not do what it seems like it
should. With ld.bfd, it is treated as '-f PIC', which does not make
sense based on the meaning of '-f':

  -f SHLIB, --auxiliary SHLIB Auxiliary filter for shared object symbol table

When building with ld.lld (currently under review in a GitHub pull
request), it just errors out because '-f' means nothing and neither does
'-fPIC':

  ld.lld: error: unknown argument '-fPIC'

'-fPIC' was blindly copied from CFLAGS when the vDSO stopped being
linked with '$(CC)', it should not be needed. Remove it to clear up the
build failure with ld.lld.

Fixes: 2b2a25845d ("s390/vdso: Use $(LD) instead of $(CC) to link vDSO")
Link: https://github.com/llvm/llvm-project/pull/75643
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
Reviewed-by: Fangrui Song <maskray@google.com>
Link: https://lore.kernel.org/r/20240130-s390-vdso-drop-fpic-from-ldflags-v1-1-094ad104fc55@kernel.org
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-03-26 18:18:12 -04:00
..
.gitignore .gitignore: add SPDX License Identifier 2020-03-25 11:50:48 +01:00
gen_vdso_offsets.sh s390/vdso: add minimal compat vdso 2021-07-08 15:37:28 +02:00
getcpu.c s390/vdso: use union tod_clock 2021-02-13 17:17:54 +01:00
Makefile s390/vdso: drop '-fPIC' from LDFLAGS 2024-03-26 18:18:12 -04:00
note.S s390: add a few more SPDX identifiers 2017-12-05 07:51:09 +01:00
vdso.h s390/vdso: add missing prototypes for vdso functions 2020-11-30 14:10:50 +01:00
vdso64.lds.S s390/vdso: add .got.plt in vdso linker script 2021-07-30 17:08:21 +02:00
vdso64_generic.c s390/vdso: add missing prototypes for vdso functions 2020-11-30 14:10:50 +01:00
vdso64_wrapper.S License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
vdso_user_wrapper.S s390/vdso: use __ALIGN instead of open coded .align 2023-03-20 11:12:47 +01:00