summaryrefslogtreecommitdiff
path: root/ld/ldemul.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@bigpond.net.au>2012-03-25 06:45:15 +0000
committerAlan Modra <amodra@bigpond.net.au>2012-03-25 06:45:15 +0000
commitbda24b473b98b96bf9b64f24b6f23fb96756bf70 (patch)
tree112179d3c9f2a4aa9bb81113d8971ca72471f1ba /ld/ldemul.c
parent391a8ed98323d2d7655a338016c745d3ba7ef959 (diff)
downloadbinutils-redhat-bda24b473b98b96bf9b64f24b6f23fb96756bf70.tar.gz
ld/
* ldemul.c (before_allocation_default): Revert last change. ldlang.c (lang_add_section): Likewise. (strip_excluded_output_sections): Don't strip output sections with user input sections when emitrelocations, unless all are SEC_EXCLUDE. ld/testsuite/ * ld-powerpc/vxworks-relax.rd: Remove check on reloc section file offset and reloc symbol indices.
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 5e2fd82a0d..85baeab325 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 && !link_info.emitrelocations)
+ if (!link_info.relocatable)
strip_excluded_output_sections ();
}