mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-10-16 20:32:21 +08:00
* ldlang.c (lang_size_sections_1): Always force output vma to zero for
relocatable sections. (lang_size_sections_1): Revert previous COFF-only accommodation for relocatable sections.
This commit is contained in:
@ -1,3 +1,10 @@
|
|||||||
|
2009-09-27 Christopher Faylor <me+cygwin@cgf.cx>
|
||||||
|
|
||||||
|
* ldlang.c (lang_size_sections_1): Always force output vma to zero for
|
||||||
|
relocatable sections.
|
||||||
|
(lang_size_sections_1): Revert previous COFF-only accommodation for
|
||||||
|
relocatable sections.
|
||||||
|
|
||||||
2009-09-25 Martin Thuresson <martint@google.com>
|
2009-09-25 Martin Thuresson <martint@google.com>
|
||||||
|
|
||||||
Update soruces to make arm targets compile cleanly with
|
Update soruces to make arm targets compile cleanly with
|
||||||
|
@ -4665,6 +4665,8 @@ lang_size_sections_1
|
|||||||
lang_memory_region_type *r;
|
lang_memory_region_type *r;
|
||||||
|
|
||||||
os = &s->output_section_statement;
|
os = &s->output_section_statement;
|
||||||
|
if (link_info.relocatable)
|
||||||
|
os->addr_tree = exp_intop (0);
|
||||||
if (os->addr_tree != NULL)
|
if (os->addr_tree != NULL)
|
||||||
{
|
{
|
||||||
os->processed_vma = FALSE;
|
os->processed_vma = FALSE;
|
||||||
@ -4789,12 +4791,7 @@ lang_size_sections_1
|
|||||||
os->name, (unsigned long) (newdot - savedot));
|
os->name, (unsigned long) (newdot - savedot));
|
||||||
}
|
}
|
||||||
|
|
||||||
/* PR 6945: Do not update the vma's of output sections
|
bfd_set_section_vma (0, os->bfd_section, newdot);
|
||||||
when performing a relocatable link on COFF objects. */
|
|
||||||
if (! link_info.relocatable
|
|
||||||
|| (bfd_get_flavour (link_info.output_bfd)
|
|
||||||
!= bfd_target_coff_flavour))
|
|
||||||
bfd_set_section_vma (0, os->bfd_section, newdot);
|
|
||||||
|
|
||||||
os->bfd_section->output_offset = 0;
|
os->bfd_section->output_offset = 0;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user