mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-15 04:31:49 +08:00
1b9e270b09
Some targets don't set a default interpreter, resulting in an empty .interp section unless --dynamic-linker is passed to ld. A PT_INTERP without a path is rather useless. The testsuite change fixes a failure on microblaze-linux. bfd/ * elf.c (get_program_header_size): Don't count PT_INTERP if .interp is empty. (_bfd_elf_map_sections_to_segments): Don't create PT_INTERP if .interp is empty. ld/ * testsuite/ld-elf/pr22423.d: Pass --dynamic-linker to ld.
9 lines
226 B
Makefile
9 lines
226 B
Makefile
#source: start.s
|
|
#readelf: -l -W
|
|
#ld: -pie --dynamic-linker=/usr/lib/ld.so.1
|
|
#target: *-*-linux* *-*-gnu* arm*-*-uclinuxfdpiceabi
|
|
|
|
#...
|
|
+PHDR +0x[0-9a-f]+ +0x[0-9a-f]+ +0x[0-9a-f]+ +0x[0-9a-f]+ +0x[0-9a-f]+ +R +0x[48]?
|
|
#pass
|