diff options
author | Alan Modra <amodra@gmail.com> | 2012-03-23 09:35:34 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2012-03-23 09:35:34 +0000 |
commit | f24fcb9dad8d6883b0f2dfe302c87557aae3bd1e (patch) | |
tree | c1307720e353da5f1675cb70be11b645024a51f6 /ld/ldlang.c | |
parent | e8d2ba535407a21e3180c8a53fd1f4492450d383 (diff) | |
download | gdb-f24fcb9dad8d6883b0f2dfe302c87557aae3bd1e.zip gdb-f24fcb9dad8d6883b0f2dfe302c87557aae3bd1e.tar.gz gdb-f24fcb9dad8d6883b0f2dfe302c87557aae3bd1e.tar.bz2 |
* 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.
Diffstat (limited to 'ld/ldlang.c')
-rw-r--r-- | ld/ldlang.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ld/ldlang.c b/ld/ldlang.c index a95d2a5..73e0179 100644 --- a/ld/ldlang.c +++ b/ld/ldlang.c @@ -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; |