Sun Apr 9 17:24:48 2023 UTC ()
ld.elf_so powerpc: remove bogus ldscript

This ldscript is not needed and actually makes things worse by putting
everything in one LOAD section, which then needs to have rwx permission.
Remove it so that we get two LOAD sections with better permissions.
Fixes PR 57323.


(chs)
diff -r1.16 -r1.17 src/libexec/ld.elf_so/arch/powerpc/Makefile.inc
diff -r1.4 -r0 src/libexec/ld.elf_so/arch/powerpc/ld.so.script

cvs diff -r1.16 -r1.17 src/libexec/ld.elf_so/arch/powerpc/Makefile.inc (expand / switch to unified diff)

--- src/libexec/ld.elf_so/arch/powerpc/Makefile.inc 2018/04/03 21:10:27 1.16
+++ src/libexec/ld.elf_so/arch/powerpc/Makefile.inc 2023/04/09 17:24:48 1.17
@@ -1,16 +1,15 @@ @@ -1,16 +1,15 @@
1# $NetBSD: Makefile.inc,v 1.16 2018/04/03 21:10:27 joerg Exp $ 1# $NetBSD: Makefile.inc,v 1.17 2023/04/09 17:24:48 chs Exp $
2 2
3SRCS+= ppc_reloc.c 3SRCS+= ppc_reloc.c
4LDFLAGS+= -Wl,-e,_rtld_start 4LDFLAGS+= -Wl,-e,_rtld_start
5 5
6CPPFLAGS+= -fPIC 6CPPFLAGS+= -fPIC
7CPPFLAGS+= -DRTLD_COMMON_CALL_IFUNC_RELA 7CPPFLAGS+= -DRTLD_COMMON_CALL_IFUNC_RELA
8 8
9.if ${LDELFSO_MACHINE_ARCH} == "powerpc64" 9.if ${LDELFSO_MACHINE_ARCH} == "powerpc64"
10SRCS+= rtld_start64.S 10SRCS+= rtld_start64.S
11CPPFLAGS+= -DELFSIZE=64 11CPPFLAGS+= -DELFSIZE=64
12.else 12.else
13SRCS+= rtld_start.S 13SRCS+= rtld_start.S
14CPPFLAGS+= -DELFSIZE=32 14CPPFLAGS+= -DELFSIZE=32
15LDFLAGS+= -Wl,--script,${.CURDIR}/arch/powerpc/ld.so.script 
16.endif 15.endif

File Deleted: src/libexec/ld.elf_so/arch/powerpc/Attic/ld.so.script