aboutsummaryrefslogtreecommitdiff
path: root/ld/ldemul.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2012-03-23 09:35:34 +0000
committerAlan Modra <amodra@gmail.com>2012-03-23 09:35:34 +0000
commitf24fcb9dad8d6883b0f2dfe302c87557aae3bd1e (patch)
treec1307720e353da5f1675cb70be11b645024a51f6 /ld/ldemul.c
parente8d2ba535407a21e3180c8a53fd1f4492450d383 (diff)
downloadbinutils-f24fcb9dad8d6883b0f2dfe302c87557aae3bd1e.zip
binutils-f24fcb9dad8d6883b0f2dfe302c87557aae3bd1e.tar.gz
binutils-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/ldemul.c')
-rw-r--r--ld/ldemul.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ld/ldemul.c b/ld/ldemul.c
index 85baeab..5e2fd82 100644
--- a/ld/ldemul.c
+++ b/ld/ldemul.c
@@ -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 ();
}