diff options
author | Bob Wilson <bob.wilson@acm.org> | 2007-07-18 18:23:47 +0000 |
---|---|---|
committer | Bob Wilson <bob.wilson@acm.org> | 2007-07-18 18:23:47 +0000 |
commit | e29297b73cbde989847ee66e87cc12d5b035aa35 (patch) | |
tree | dcf7f90bef59af1378fe94715a33ad4f42ad7303 /bfd | |
parent | aa0403d920ef898519cc2413e074f4622045a95f (diff) | |
download | gdb-e29297b73cbde989847ee66e87cc12d5b035aa35.zip gdb-e29297b73cbde989847ee66e87cc12d5b035aa35.tar.gz gdb-e29297b73cbde989847ee66e87cc12d5b035aa35.tar.bz2 |
* elf32-xtensa.c (elf_xtensa_finish_dynamic_sections): Get section
vma and size for dynamic tags from the output sections.
Diffstat (limited to 'bfd')
-rw-r--r-- | bfd/ChangeLog | 5 | ||||
-rw-r--r-- | bfd/elf32-xtensa.c | 10 |
2 files changed, 10 insertions, 5 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index eb639c4..4883443 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2007-07-18 Bob Wilson <bob.wilson@acm.org> + + * elf32-xtensa.c (elf_xtensa_finish_dynamic_sections): Get section + vma and size for dynamic tags from the output sections. + 2007-07-18 Alan Modra <amodra@bigpond.net.au> * elf-bfd.h (struct sym_sec_cache): Delete "sec". Add "shndx". diff --git a/bfd/elf32-xtensa.c b/bfd/elf32-xtensa.c index 55dcf2e..1182bd9 100644 --- a/bfd/elf32-xtensa.c +++ b/bfd/elf32-xtensa.c @@ -2649,19 +2649,19 @@ elf_xtensa_finish_dynamic_sections (bfd *output_bfd, break; case DT_XTENSA_GOT_LOC_OFF: - dyn.d_un.d_ptr = htab->sgotloc->vma; + dyn.d_un.d_ptr = htab->sgotloc->output_section->vma; break; case DT_PLTGOT: - dyn.d_un.d_ptr = htab->sgot->vma; + dyn.d_un.d_ptr = htab->sgot->output_section->vma; break; case DT_JMPREL: - dyn.d_un.d_ptr = htab->srelplt->vma; + dyn.d_un.d_ptr = htab->srelplt->output_section->vma; break; case DT_PLTRELSZ: - dyn.d_un.d_val = htab->srelplt->size; + dyn.d_un.d_val = htab->srelplt->output_section->size; break; case DT_RELASZ: @@ -2672,7 +2672,7 @@ elf_xtensa_finish_dynamic_sections (bfd *output_bfd, for .rela.plt to follow all other relocation sections, we don't have to worry about changing the DT_RELA entry. */ if (htab->srelplt) - dyn.d_un.d_val -= htab->srelplt->size; + dyn.d_un.d_val -= htab->srelplt->output_section->size; break; } |