summaryrefslogtreecommitdiff
path: root/ld/ldemul.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2012-03-25 06:45:16 +0000
committerAlan Modra <amodra@gmail.com>2012-03-25 06:45:16 +0000
commitb514e6a51fefb7dde379f595b76dd9113e132487 (patch)
tree8e00f7fd72dca626b544b5b1c5b3c832afc8b2a8 /ld/ldemul.c
parent8f784a0e6ad19b9cd7afc9a67d7ee39a5f5f94cf (diff)
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 ();
}