From bda24b473b98b96bf9b64f24b6f23fb96756bf70 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Sun, 25 Mar 2012 06:45:15 +0000 Subject: 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. --- ld/ldemul.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ld/ldemul.c') 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 (); } -- cgit v1.2.1