2006-10-20 Richard Sandiford <richard@codesourcery.com>
+ * elfxx-mips.c (_bfd_mips_elf_finish_dynamic_sections): Make the
+ size of .rel.dyn reflect the value of DT_RELSZ.
+
+2006-10-20 Richard Sandiford <richard@codesourcery.com>
+
* elfxx-mips.c (_bfd_mips_elf_additional_program_headers): Allocate
a PT_NULL header for dynamic objects.
(_bfd_mips_elf_modify_segment_map): Add it.
* (ABI_64_P (output_bfd)
? sizeof (Elf64_Mips_External_Rel)
: sizeof (Elf32_External_Rel)));
+ /* Adjust the section size too. Tools like the prelinker
+ can reasonably expect the values to the same. */
+ elf_section_data (s->output_section)->this_hdr.sh_size
+ = dyn.d_un.d_val;
break;
default:
2006-10-20 Richard Sandiford <richard@codesourcery.com>
+ * ld-mips-elf/multi-got-1.d: Remove trailing R_MIPS_NONE entries.
+ * ld-mips-elf/tls-multi-got-1.got: Likewise.
+ * ld-mips-elf/tls-multi-got-1.r: Likewise.
+
+2006-10-20 Richard Sandiford <richard@codesourcery.com>
+
* ld-mips-elf/multi-got-1.d: Do not expect a particular address
for DT_HASH.
* ld-mips-elf/rel32-o32.d: Bump addresses by 0x20 to account for
0x70000013 \(MIPS_GOTSYM\) 0x[0-9a-f]+
0x00000000 \(NULL\) 0x0
-Relocation section '\.rel\.dyn' at offset 0x[0-9a-f]+ contains 8203 entries:
+Relocation section '\.rel\.dyn' at offset 0x[0-9a-f]+ contains 8193 entries:
Offset Info Type Sym.Value Sym. Name
00000000 00000000 R_MIPS_NONE
^[0-9a-f]+ [0-9a-f]+ R_MIPS_REL32 [0-9a-f]+ sym_2_[0-9]+
^[0-9a-f]+ [0-9a-f]+ R_MIPS_REL32 [0-9a-f]+ sym_2_[0-9]+
^[0-9a-f]+ [0-9a-f]+ R_MIPS_REL32 [0-9a-f]+ sym_2_[0-9]+
^[0-9a-f]+ [0-9a-f]+ R_MIPS_REL32 [0-9a-f]+ sym_2_[0-9]+
-00000000 00000000 R_MIPS_NONE
-00000000 00000000 R_MIPS_NONE
-00000000 00000000 R_MIPS_NONE
-00000000 00000000 R_MIPS_NONE
-00000000 00000000 R_MIPS_NONE
-00000000 00000000 R_MIPS_NONE
-00000000 00000000 R_MIPS_NONE
-00000000 00000000 R_MIPS_NONE
-00000000 00000000 R_MIPS_NONE
-00000000 00000000 R_MIPS_NONE
00143f7c R_MIPS_REL32 sym_1_9526
#...
00139bd0 R_MIPS_REL32 sym_2_8654
-00000000 R_MIPS_NONE \*ABS\*
-00000000 R_MIPS_NONE \*ABS\*
-00000000 R_MIPS_NONE \*ABS\*
-00000000 R_MIPS_NONE \*ABS\*
-00000000 R_MIPS_NONE \*ABS\*
-00000000 R_MIPS_NONE \*ABS\*
-00000000 R_MIPS_NONE \*ABS\*
-00000000 R_MIPS_NONE \*ABS\*
-00000000 R_MIPS_NONE \*ABS\*
-00000000 R_MIPS_NONE \*ABS\*
-00000000 R_MIPS_NONE \*ABS\*
-00000000 R_MIPS_NONE \*ABS\*
-00000000 R_MIPS_NONE \*ABS\*
-00000000 R_MIPS_NONE \*ABS\*
-00000000 R_MIPS_NONE \*ABS\*
-00000000 R_MIPS_NONE \*ABS\*
-00000000 R_MIPS_NONE \*ABS\*
-00000000 R_MIPS_NONE \*ABS\*
-00000000 R_MIPS_NONE \*ABS\*
-00000000 R_MIPS_NONE \*ABS\*
-00000000 R_MIPS_NONE \*ABS\*
-00000000 R_MIPS_NONE \*ABS\*
Contents of section .got:
0x0000001e \(FLAGS\) STATIC_TLS
0x00000000 \(NULL\) 0x0
-Relocation section '\.rel\.dyn' at offset 0x[0-9a-f]+ contains 20031 entries:
+Relocation section '\.rel\.dyn' at offset 0x[0-9a-f]+ contains 20009 entries:
Offset Info Type Sym.Value Sym. Name
[0-9a-f ]+R_MIPS_NONE
[0-9a-f ]+R_MIPS_TLS_DTPMOD
#...
[0-9a-f ]+R_MIPS_REL32 000cf2b4 sym_1_0465
[0-9a-f ]+R_MIPS_REL32 000e0ef8 sym_2_8654
-#...