diff options
author | Alan Modra <amodra@gmail.com> | 2016-10-31 12:46:38 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2016-10-31 12:49:14 +1030 |
commit | c646b02fdcae5f37bd88f33a0c4683ef13ad5c82 (patch) | |
tree | 19f01f83481186dfe398a47524b19e63e0f49b06 /bfd/elf32-microblaze.c | |
parent | 1964088538cbf9483a1c9f411ad9d9054ea7be90 (diff) | |
download | gdb-c646b02fdcae5f37bd88f33a0c4683ef13ad5c82.zip gdb-c646b02fdcae5f37bd88f33a0c4683ef13ad5c82.tar.gz gdb-c646b02fdcae5f37bd88f33a0c4683ef13ad5c82.tar.bz2 |
Revert part "Set dynamic tag VMA and size from dynamic section when possible"
PR 20748
* elf32-microblaze.c (microblaze_elf_finish_dynamic_sections): Revert
2016-05-13 change.
Diffstat (limited to 'bfd/elf32-microblaze.c')
-rw-r--r-- | bfd/elf32-microblaze.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bfd/elf32-microblaze.c b/bfd/elf32-microblaze.c index 477e7b3..5c66808 100644 --- a/bfd/elf32-microblaze.c +++ b/bfd/elf32-microblaze.c @@ -3396,13 +3396,13 @@ microblaze_elf_finish_dynamic_sections (bfd *output_bfd, { asection *s; - s = bfd_get_linker_section (dynobj, name); + s = bfd_get_section_by_name (output_bfd, name); if (s == NULL) dyn.d_un.d_val = 0; else { if (! size) - dyn.d_un.d_ptr = s->output_section->vma + s->output_offset; + dyn.d_un.d_ptr = s->vma; else dyn.d_un.d_val = s->size; } |