binutils-gdb/ld/testsuite/ld-s390
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
..
gotreloc-1.s 2013-07-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com> 2013-07-05 09:51:00 +00:00
gotreloc-1.ver 2013-07-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com> 2013-07-05 09:51:00 +00:00
gotreloc_31-1.dd S/390: Fix gotreloc_31-1 testcase. 2015-04-27 10:24:24 +02:00
gotreloc_64-1.dd 2013-07-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com> 2013-07-05 09:51:00 +00:00
pltoffset-1.dd Fix PLT first entry GOT operand calculation. 2016-06-07 16:47:10 +02:00
pltoffset-1.ld Fix PLT first entry GOT operand calculation. 2016-06-07 16:47:10 +02:00
pltoffset-1.s Fix PLT first entry GOT operand calculation. 2016-06-07 16:47:10 +02:00
s390.exp Support different ld --hash-style in the ld testsuite 2017-08-07 22:10:51 +09:30
tlsbin.dd S/390: Add support for IBM z13. 2015-01-16 12:28:58 +01:00
tlsbin.rd ld: Remove PF_X from PT_PHDR segment 2017-11-12 17:04:03 -08:00
tlsbin.s 2004-10-01 H.J. Lu <hongjiu.lu@intel.com> 2004-10-01 20:11:40 +00:00
tlsbin.sd
tlsbin.td
tlsbin_64.dd Enhance objdump so that it will use .got, .plt and .plt.got section symbols when disassembling, and it will use dynamic relocs to interpret entries in the PLT and GOT. 2016-10-11 13:50:10 +01:00
tlsbin_64.rd ld: Remove PF_X from PT_PHDR segment 2017-11-12 17:04:03 -08:00
tlsbin_64.s 2004-10-01 H.J. Lu <hongjiu.lu@intel.com> 2004-10-01 20:11:40 +00:00
tlsbin_64.sd
tlsbin_64.td
tlsbinpic.s 2004-10-01 H.J. Lu <hongjiu.lu@intel.com> 2004-10-01 20:11:40 +00:00
tlsbinpic_64.s 2004-10-01 H.J. Lu <hongjiu.lu@intel.com> 2004-10-01 20:11:40 +00:00
tlslib.s
tlslib_64.s
tlspic.dd 2010-09-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com> 2010-09-27 13:33:00 +00:00
tlspic.rd readelf ngettext fixes 2017-11-07 17:01:16 +10:30
tlspic.sd
tlspic.td
tlspic1.s Fix spelling in comments in Assembler files (ld) 2016-11-27 15:07:26 +10:30
tlspic1_64.s Fix spelling in comments in Assembler files (ld) 2016-11-27 15:07:26 +10:30
tlspic2.s
tlspic2_64.s
tlspic_64.dd Enhance objdump so that it will use .got, .plt and .plt.got section symbols when disassembling, and it will use dynamic relocs to interpret entries in the PLT and GOT. 2016-10-11 13:50:10 +01:00
tlspic_64.rd readelf ngettext fixes 2017-11-07 17:01:16 +10:30
tlspic_64.sd
tlspic_64.td