old-cross-binutils/ld/testsuite/ld-pie/vaddr-1.d
H.J. Lu 58e7ebacdd Set ET_EXEC for -pie -Ttext-segment=
bfd/

	* elf.c (assign_file_positions_except_relocs): Set e_type in ELF
	header to ET_EXEC for -pie -Ttext-segment=.

2013-12-10  H.J. Lu  <hongjiu.lu@intel.com>

	* ld-pie/vaddr-0.d: New file.
	* ld-pie/vaddr-1.d: Likewise.
	* ld-pie/vaddr.s: Likewise.
2013-12-12 07:41:27 -08:00

9 lines
201 B
Makefile

#source: vaddr.s
#name: non-zero p_vaddr
#ld: -pie -Ttext-segment 0x7000000 -z max-page-size=0x200000
#readelf: -h
ELF Header:
#...
Type: EXEC \(Executable file\)
#pass