OSDN Git Service

* elf32-i386.c (elf_i386_finish_dynamic_sections): Add output_offset
authorAlan Modra <amodra@bigpond.net.au>
Thu, 12 Dec 2002 10:17:14 +0000 (10:17 +0000)
committerAlan Modra <amodra@bigpond.net.au>
Thu, 12 Dec 2002 10:17:14 +0000 (10:17 +0000)
commit3b42c2e50dfeb37ea043a855d2d5b45707e86d5d
treed43c33878159bf257e2b773d35b68e3b40e87a1a
parentba8c43696bba096dac1df8ff7d42e66e1ef5a453
* 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