linux-stable/arch/s390
Nathan Chancellor 16b9514149 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:16:41 -04:00
..
appldata S390: Remove now superfluous sentinel elem from ctl_table arrays 2023-10-10 15:22:02 -07:00
boot s390/boot: always align vmalloc area on segment boundary 2023-11-22 14:07:28 +01:00
configs s390/configs: update default configurations 2024-02-09 13:57:29 +01:00
crypto s390 updates for 6.8 merge window 2024-01-10 18:18:20 -08:00
hypfs hypfs: convert to new timestamp accessors 2023-10-18 13:26:15 +02:00
include work around gcc bugs with 'asm goto' with outputs 2024-02-09 15:57:48 -08:00
kernel s390/vdso: drop '-fPIC' from LDFLAGS 2024-03-26 18:16:41 -04:00
kvm pqap instruction missing cc fix 2024-01-26 12:57:12 -05:00
lib s390/nmi: implement and use local_mcck_save() / local_mcck_restore() 2023-12-11 14:33:05 +01:00
mm pqap instruction missing cc fix 2024-01-26 12:57:12 -05:00
net s390/bpf: Fix gotol with large offsets 2024-01-04 11:35:40 -08:00
pci s390: use the correct count for __iowrite64_copy() 2024-02-21 15:07:46 +01:00
purgatory s390 updates for 6.5 merge window part 2 2023-07-06 13:18:30 -07:00
tools s390/als: add vector facility to z13 architecture level set 2023-12-11 14:33:07 +01:00
Kbuild - An extensive rework of kexec and crash Kconfig from Eric DeVolder 2023-08-29 14:53:51 -07:00
Kconfig s390/kexec: do not automatically select KEXEC option 2024-01-11 18:22:58 +01:00
Kconfig.debug
Makefile kbuild: unify vdso_install rules 2023-10-28 21:09:02 +09:00