binutils-gdb/ld/testsuite/ld-mips-elf/textrel-1.d
Eric Christopher cc27e1dc44 bfd/ChangeLog:
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.
2005-03-24 01:30:47 +00:00

27 lines
1.1 KiB
Makefile

#name: MIPS textrel-1
#source: textrel-1.s
#as: -EB -n32
#ld: -shared -melf32btsmipn32
#readelf: -d
Dynamic section at offset 0xb4 contains 18 entries:
Tag Type Name/Value
0x00000004 \(HASH\) 0x16c
0x00000005 \(STRTAB\) 0x30c
0x00000006 \(SYMTAB\) 0x1fc
0x0000000a \(STRSZ\) 84 \(bytes\)
0x0000000b \(SYMENT\) 16 \(bytes\)
0x00000015 \(DEBUG\) 0x0
0x00000003 \(PLTGOT\) 0x1003e0
0x00000011 \(REL\) 0x360
0x00000012 \(RELSZ\) 8 \(bytes\)
0x00000013 \(RELENT\) 8 \(bytes\)
0x70000001 \(MIPS_RLD_VERSION\) 1
0x70000005 \(MIPS_FLAGS\) NOTPOT
0x70000006 \(MIPS_BASE_ADDRESS\) 0
0x7000000a \(MIPS_LOCAL_GOTNO\) 7
0x70000011 \(MIPS_SYMTABNO\) 17
0x70000012 \(MIPS_UNREFEXTNO\) 12
0x70000013 \(MIPS_GOTSYM\) 0x11
0x00000000 \(NULL\) 0x0