binutils-gdb/ld/testsuite/ld-ia64
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
..
error1.d
error1.s
error2.d
error3.d
ia64.exp Support different ld --hash-style in the ld testsuite 2017-08-07 22:10:51 +09:30
line.exp
link-order.d
local1.d
local1.map
local1.s
merge1.d Support different ld --hash-style in the ld testsuite 2017-08-07 22:10:51 +09:30
merge1.s
merge2.d Support different ld --hash-style in the ld testsuite 2017-08-07 22:10:51 +09:30
merge2.s
merge3.d Support different ld --hash-style in the ld testsuite 2017-08-07 22:10:51 +09:30
merge3.s
merge4.d Support different ld --hash-style in the ld testsuite 2017-08-07 22:10:51 +09:30
merge4.s
merge5.d Support different ld --hash-style in the ld testsuite 2017-08-07 22:10:51 +09:30
merge5.s
tlsbin.dd
tlsbin.rd ld: Remove PF_X from PT_PHDR segment 2017-11-12 17:04:03 -08:00
tlsbin.s
tlsbin.sd
tlsbin.td
tlsbinpic.s
tlsg.s
tlsg.sd
tlslib.s
tlspic.dd
tlspic.rd readelf ngettext fixes 2017-11-07 17:01:16 +10:30
tlspic.sd
tlspic.td
tlspic1.s
tlspic2.s
undefined.s