6a4837657a
* elfxx-mips.c (_bfd_mips_elf_size_dynamic_sections): Add DT_DEBUG and DT_MIPS_RLD_MAP tags for position-independent executables. Do not add DT_DEBUG to shared libraries for any MIPS target. ld/testsuite/ * ld-mips-elf/multi-got-1.d: Remove DT_DEBUG tag. Do not require a specific file offset for .dynamic. Reduce DT_HASH by 8 to account for removed tag. * ld-mips-elf/tls-multi-got-1.r: Likewise. Also reduce DT_REL by 8. Reduce PLTGOT and symbol values by 16 to account for the removed tag. * ld-mips-elf/textrel-1.d: Remove DT_DEBUG tag. * ld-mips-elf/rel32-n32.d: Reduce addresses by 16 to account for removed DT_DEBUG tag. * ld-mips-elf/rel64.d: Likewise. * ld-mips-elf/tls-multi-got-1.got: Likewise. * ld-mips-elf/tlslib-o32-hidden.got: Likewise.
15 lines
512 B
Makefile
15 lines
512 B
Makefile
#name: MIPS rel32 n32
|
|
#source: rel32.s
|
|
#as: -KPIC -EB -n32
|
|
#readelf: -x 6 -r
|
|
#ld: -shared -melf32btsmipn32
|
|
|
|
Relocation section '.rel.dyn' at offset .* contains 2 entries:
|
|
Offset Info Type Sym.Value Sym. Name
|
|
[0-9a-f ]+R_MIPS_NONE
|
|
[0-9a-f ]+R_MIPS_REL32
|
|
|
|
Hex dump of section '.text':
|
|
0x000002c0 00000000 00000000 00000000 00000000 ................
|
|
0x000002d0 000002d0 00000000 00000000 00000000 ................
|
|
0x000002e0 00000000 00000000 00000000 00000000 ................
|