* elf32-i386.c (elf_i386_finish_dynamic_sections): Add output_offset
commit9bf1ef982e078863bd4a6e5285c9a810f1317c71
authorAlan Modra <amodra@bigpond.net.au>
Thu, 12 Dec 2002 10:17:14 +0000 (12 10:17 +0000)
committerAlan Modra <amodra@bigpond.net.au>
Thu, 12 Dec 2002 10:17:14 +0000 (12 10:17 +0000)
tree100db95d6e6481b82df5ba6de84f5e0582890510
parent94a848953adfe3d3e51ffaf3a016b42688777b97
* elf32-i386.c (elf_i386_finish_dynamic_sections): Add output_offset
to DT_JMPREL.  Use srelplt input section size for DT_PLTRELSZ and
DT_RELSZ adjustment, not output section.  Avoid writing tags when
unchanged.  Don't assume linker script is sane, adjust DT_REL too.
* elf32-hppa.c (elf32_hppa_finish_dynamic_sections): Just use raw
size of srelplt for DT_PLTRELSZ.  Use srelplt input section size for
DT_RELASZ adjustment, not output section.  Avoid writing tags when
unchanged.  Adjust DT_RELA.
* elf64-ppc.c (ppc64_elf_finish_dynamic_sections): Tweaks for better
formatting.  Avoid writing tags when unchanged.  Adjust DT_RELA.
bfd/ChangeLog
bfd/elf32-hppa.c
bfd/elf32-i386.c
bfd/elf64-ppc.c