* ldemul.c (before_allocation_default): When emitrelocations,
don't strip sections.. * ldlang.c (lang_add_section): ..and don't set up map_head, map_tail.
This commit is contained in:
parent
e8d2ba5354
commit
f24fcb9dad
3 changed files with 8 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
|||
2012-03-23 Alan Modra <amodra@gmail.com>
|
||||
|
||||
* ldemul.c (before_allocation_default): When emitrelocations,
|
||||
don't strip sections..
|
||||
* ldlang.c (lang_add_section): ..and don't set up map_head, map_tail.
|
||||
|
||||
2012-03-14 Kai Tietz <ktietz@redhat.com>
|
||||
Pascal Obry <pascal@obry.net>
|
||||
|
||||
|
|
|
@ -237,7 +237,7 @@ after_allocation_default (void)
|
|||
void
|
||||
before_allocation_default (void)
|
||||
{
|
||||
if (!link_info.relocatable)
|
||||
if (!link_info.relocatable && !link_info.emitrelocations)
|
||||
strip_excluded_output_sections ();
|
||||
}
|
||||
|
||||
|
|
|
@ -2380,6 +2380,7 @@ lang_add_section (lang_statement_list_type *ptr,
|
|||
section->output_section = output->bfd_section;
|
||||
|
||||
if (!link_info.relocatable
|
||||
&& !link_info.emitrelocations
|
||||
&& !stripped_excluded_sections)
|
||||
{
|
||||
asection *s = output->bfd_section->map_tail.s;
|
||||
|
|
Loading…
Add table
Reference in a new issue