58e7ebacdd
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.
9 lines
201 B
Makefile
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
|