diff options
author | Alan Modra <amodra@gmail.com> | 2012-03-25 06:45:16 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2012-03-25 06:45:16 +0000 |
commit | b514e6a51fefb7dde379f595b76dd9113e132487 (patch) | |
tree | 8e00f7fd72dca626b544b5b1c5b3c832afc8b2a8 /ld/ldemul.c | |
parent | 8f784a0e6ad19b9cd7afc9a67d7ee39a5f5f94cf (diff) | |
download | gdb-b514e6a51fefb7dde379f595b76dd9113e132487.zip gdb-b514e6a51fefb7dde379f595b76dd9113e132487.tar.gz gdb-b514e6a51fefb7dde379f595b76dd9113e132487.tar.bz2 |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ld/ldemul.c b/ld/ldemul.c index 5e2fd82..85baeab 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 (); } |