]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
s390/vdso: remove unused ENTRY in linker scripts
authorHeiko Carstens <hca@linux.ibm.com>
Fri, 9 Feb 2024 10:54:01 +0000 (11:54 +0100)
committerHeiko Carstens <hca@linux.ibm.com>
Wed, 14 Feb 2024 12:50:53 +0000 (13:50 +0100)
When linking vdso64.so.dbg with ld.lld, there is a warning about not
finding _start for the starting address:

  ld.lld: warning: cannot find entry symbol _start; not setting start address

Fix this by removing the unused ENTRY in both vdso linker scripts. See
commit e247172854a5 ("powerpc/vdso: Remove unused ENTRY in linker
scripts"), which solved the same problem for powerpc, for further details.

Reviewed-by: Nathan Chancellor <nathan@kernel.org>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
arch/s390/kernel/vdso32/vdso32.lds.S
arch/s390/kernel/vdso64/vdso64.lds.S

index edf5ff1debe109987312a74658122cb2eb0a7298..65b9513a5a0ee2a7e3508a1d919f826c4b4184ca 100644 (file)
@@ -9,7 +9,6 @@
 
 OUTPUT_FORMAT("elf32-s390", "elf32-s390", "elf32-s390")
 OUTPUT_ARCH(s390:31-bit)
-ENTRY(_start)
 
 SECTIONS
 {
index 4461ea151e49a16d5a2000e4fbf8b29a354f5763..37e2a505e81dbde8a8954a6883e6a60f8fa81b0f 100644 (file)
@@ -9,7 +9,6 @@
 
 OUTPUT_FORMAT("elf64-s390", "elf64-s390", "elf64-s390")
 OUTPUT_ARCH(s390:64-bit)
-ENTRY(_start)
 
 SECTIONS
 {