cc27e1dc44
2005-03-23 Eric Christopher <echristo@redhat.com> * elfxx-mips.c (MIPS_ELF_READONLY_SECTION): New. (mips_elf_calculate_relocation): Use. Define DF_TEXTREL after emitting relocation. (_bfd_mips_elf_adjust_dynamic_symbol): Ditto. (_bfd_mips_elf_check_relocs): Remove code to set DF_TEXTREL and readonly_reloc. ld/testsuite/ChangeLog: 2005-03-23 Eric Christopher <echristo@redhat.com> * ld-mips-elf/textrel-1.s, ld-mips-elf/textrel-1.d: New test. * ld-mips-elf/mips-elf.exp: Call it. * ld-mips-elf/rel32-n32.d: Update for DF_TEXTREL removal. * ld-mips-elf/rel32-o32.d: Ditto. * ld-mips-elf/rel64.d: Ditto.
15 lines
533 B
Makefile
15 lines
533 B
Makefile
#name: MIPS rel32 n32
|
|
#source: rel32.s
|
|
#as: -KPIC -EB -n32
|
|
#readelf: -x 5 -r
|
|
#ld: -shared -melf32btsmipn32
|
|
|
|
Relocation section '.rel.dyn' at offset 0x2fc contains 2 entries:
|
|
Offset Info Type Sym.Value Sym. Name
|
|
00000000 00000000 R_MIPS_NONE
|
|
00000320 00000003 R_MIPS_REL32
|
|
|
|
Hex dump of section '.text':
|
|
0x00000310 00000000 00000000 00000000 00000000 ................
|
|
0x00000320 00000320 00000000 00000000 00000000 ................
|
|
0x00000330 00000000 00000000 00000000 00000000 ................
|