mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-23 19:50:13 +08:00
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.
This commit is contained in:
@ -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>
|
2016-10-27 Andrew Burgess <andrew.burgess@embecosm.com>
|
||||||
|
|
||||||
* cpu-arc.c (arc_get_mach): Delete.
|
* cpu-arc.c (arc_get_mach): Delete.
|
||||||
|
@ -3396,13 +3396,13 @@ microblaze_elf_finish_dynamic_sections (bfd *output_bfd,
|
|||||||
{
|
{
|
||||||
asection *s;
|
asection *s;
|
||||||
|
|
||||||
s = bfd_get_linker_section (dynobj, name);
|
s = bfd_get_section_by_name (output_bfd, name);
|
||||||
if (s == NULL)
|
if (s == NULL)
|
||||||
dyn.d_un.d_val = 0;
|
dyn.d_un.d_val = 0;
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (! size)
|
if (! size)
|
||||||
dyn.d_un.d_ptr = s->output_section->vma + s->output_offset;
|
dyn.d_un.d_ptr = s->vma;
|
||||||
else
|
else
|
||||||
dyn.d_un.d_val = s->size;
|
dyn.d_un.d_val = s->size;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user