This is the mail archive of the
binutils-cvs@sourceware.org
mailing list for the binutils project.
[binutils-gdb] Revert part "Set dynamic tag VMA and size from dynamic section when possible"
- From: Alan Modra <amodra at sourceware dot org>
- To: bfd-cvs at sourceware dot org
- Date: 31 Oct 2016 03:32:53 -0000
- Subject: [binutils-gdb] Revert part "Set dynamic tag VMA and size from dynamic section when possible"
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=c646b02fdcae5f37bd88f33a0c4683ef13ad5c82
commit c646b02fdcae5f37bd88f33a0c4683ef13ad5c82
Author: Alan Modra <amodra@gmail.com>
Date: Mon Oct 31 12:46:38 2016 +1030
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.
Diff:
---
bfd/ChangeLog | 6 ++++++
bfd/elf32-microblaze.c | 4 ++--
2 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 3fbac7e..5e0a918 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,9 @@
+2016-10-31 Alan Modra <amodra@gmail.com>
+
+ PR 20748
+ * elf32-microblaze.c (microblaze_elf_finish_dynamic_sections): Revert
+ 2016-05-13 change.
+
2016-10-27 Andrew Burgess <andrew.burgess@embecosm.com>
* cpu-arc.c (arc_get_mach): Delete.
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;
}