aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorRichard Sandiford <rdsandiford@googlemail.com>2006-10-20 07:58:17 +0000
committerRichard Sandiford <rdsandiford@googlemail.com>2006-10-20 07:58:17 +0000
commitbcfdf036c8f094a9e43e2de47dd5e6ea00e1f816 (patch)
tree8560a4415b4f26bbe8769a72eca9611b6860e89d /bfd
parent98c904a8640de8891570902ac9d1ef6153092a18 (diff)
downloadfsf-binutils-gdb-bcfdf036c8f094a9e43e2de47dd5e6ea00e1f816.zip
fsf-binutils-gdb-bcfdf036c8f094a9e43e2de47dd5e6ea00e1f816.tar.gz
fsf-binutils-gdb-bcfdf036c8f094a9e43e2de47dd5e6ea00e1f816.tar.bz2
bfd/
* elfxx-mips.c (_bfd_mips_elf_finish_dynamic_sections): Make the size of .rel.dyn reflect the value of DT_RELSZ. ld/testsuite/ * 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.
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog5
-rw-r--r--bfd/elfxx-mips.c4
2 files changed, 9 insertions, 0 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 5a1cbd3..304783a 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,5 +1,10 @@
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.
diff --git a/bfd/elfxx-mips.c b/bfd/elfxx-mips.c
index 639a065..34a06c8 100644
--- a/bfd/elfxx-mips.c
+++ b/bfd/elfxx-mips.c
@@ -8873,6 +8873,10 @@ _bfd_mips_elf_finish_dynamic_sections (bfd *output_bfd,
* (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: