binutils-gdb/ld/testsuite/ld-sparc
H.J. Lu f882209d9a ld: Remove PF_X from PT_PHDR segment
It was reasonable to mark PT_PHDR segment with PF_X for compatibility
with UnixWare and Solaris linkers 20 years ago.  But it is inappropriate
today when the primary OS of GNU ld is Linux.  This patch removes PF_X
from PT_PHDR segment as gold does.

Tested natively on Linux/x86 as well as crosss-binutils for alpha-linux,
ia64-linux, powerpc64-linux, powerpc-linux, s390-linux, s390x-linux,
sparc64-linux and sparc-linux.

bfd/

	PR ld/22423
	* elf.c (_bfd_elf_map_sections_to_segments): Remove PF_X from
	PT_PHDR segment.

ld/

	PR ld/22423
	* testsuite/ld-alpha/tlsbin.rd: Replace "R E " with "R +" for
	PT_PHDR segment.
	* testsuite/ld-alpha/tlsbinr.rd: Likewise.
	* testsuite/ld-ia64/tlsbin.rd: Likewise.
	* testsuite/ld-powerpc/tlsexe.r: Likewise.
	* testsuite/ld-powerpc/tlsexe32.r: Likewise.
	* testsuite/ld-powerpc/tlsexetoc.r: Likewise.
	* testsuite/ld-s390/tlsbin.rd: Likewise.
	* testsuite/ld-s390/tlsbin_64.rd: Likewise.
	* testsuite/ld-sparc/tlssunbin32.rd: Likewise.
	* testsuite/ld-sparc/tlssunbin64.rd: Likewise.
	* testsuite/ld-elf/pr22423.d: New test.
2017-11-12 17:04:03 -08:00
..
gotop32.dd
gotop32.rd readelf ngettext fixes 2017-11-07 17:01:16 +10:30
gotop32.s
gotop32.sd
gotop32.td
gotop64.dd
gotop64.rd readelf ngettext fixes 2017-11-07 17:01:16 +10:30
gotop64.s
gotop64.sd
gotop64.td
sparc.exp Support different ld --hash-style in the ld testsuite 2017-08-07 22:10:51 +09:30
tlsg32.s
tlsg32.sd
tlsg64.s
tlsg64.sd
tlslib.s
tlsnopic.s
tlspic.s
tlssunbin32.dd
tlssunbin32.rd ld: Remove PF_X from PT_PHDR segment 2017-11-12 17:04:03 -08:00
tlssunbin32.s
tlssunbin32.sd
tlssunbin32.td
tlssunbin64.dd ld: fix regressions with rett instructions in sparc tests. 2017-04-24 05:31:31 -07:00
tlssunbin64.rd ld: Remove PF_X from PT_PHDR segment 2017-11-12 17:04:03 -08:00
tlssunbin64.s
tlssunbin64.sd
tlssunbin64.td
tlssunbinpic32.s
tlssunbinpic64.s
tlssunnopic32.dd
tlssunnopic32.rd Place .shstrtab section after .symtab and .strtab, thus restoring monotonically increasing section offsets. 2016-08-19 09:16:30 +01:00
tlssunnopic32.s
tlssunnopic32.sd
tlssunnopic64.dd ld: fix regressions with rett instructions in sparc tests. 2017-04-24 05:31:31 -07:00
tlssunnopic64.rd Place .shstrtab section after .symtab and .strtab, thus restoring monotonically increasing section offsets. 2016-08-19 09:16:30 +01:00
tlssunnopic64.s
tlssunnopic64.sd
tlssunpic32.dd
tlssunpic32.rd readelf ngettext fixes 2017-11-07 17:01:16 +10:30
tlssunpic32.s
tlssunpic32.sd
tlssunpic32.td
tlssunpic64.dd ld: fix regressions with rett instructions in sparc tests. 2017-04-24 05:31:31 -07:00
tlssunpic64.rd readelf ngettext fixes 2017-11-07 17:01:16 +10:30
tlssunpic64.s
tlssunpic64.sd
tlssunpic64.td
vxworks1-lib.dd
vxworks1-lib.nd
vxworks1-lib.rd readelf ngettext fixes 2017-11-07 17:01:16 +10:30
vxworks1-lib.s
vxworks1-lib.td
vxworks1-static.d
vxworks1.dd
vxworks1.ld
vxworks1.rd
vxworks1.s
vxworks2-static.sd
vxworks2.s
vxworks2.sd
wdispcall.dd bfd,ld: Continue after partially-successful relaxed call relocations in sparc. 2016-12-04 22:59:18 -08:00
wdispcall.s bfd,ld: Continue after partially-successful relaxed call relocations in sparc. 2016-12-04 22:59:18 -08:00