aboutsummaryrefslogtreecommitdiff
path: root/ld/ldwrite.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2014-08-14 13:49:31 +0930
committerAlan Modra <amodra@gmail.com>2014-08-14 13:49:31 +0930
commit18cd5bce47dc4a33dd1d8e3036b99d2fa7e3234f (patch)
treea45e5b4efa46052d1f8bf538e0695e2b264795a5 /ld/ldwrite.c
parentb879806f2fdd2eca7092d7b854d6cbbbbbd0493b (diff)
downloadgdb-18cd5bce47dc4a33dd1d8e3036b99d2fa7e3234f.zip
gdb-18cd5bce47dc4a33dd1d8e3036b99d2fa7e3234f.tar.gz
gdb-18cd5bce47dc4a33dd1d8e3036b99d2fa7e3234f.tar.bz2
Linker part of PR16563 fix
Presents .eh_frame input sections to the optimisation machinery in elf-eh-frame.c in the order they are given by the linker script. PR 16563 bfd/ * elflink.c (bfd_elf_discard_info): Process .eh_frame and .stab in the order they are mapped to output sections. ld/ * ldlang.c (map_head_is_link_order): Rename from stripped_excluded_sections. (lang_clear_os_map): New function, extracted from.. (strip_excluded_output_sections): ..here. * ldlang.h (lang_clear_os_map): Declare. * ldwrite.c (ldwrite): Call lang_clear_os_map. * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_after_allocation): Likewise.
Diffstat (limited to 'ld/ldwrite.c')
-rw-r--r--ld/ldwrite.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ld/ldwrite.c b/ld/ldwrite.c
index 963cb98..43bc40b 100644
--- a/ld/ldwrite.c
+++ b/ld/ldwrite.c
@@ -572,6 +572,7 @@ ldwrite (void)
/* Reset error indicator, which can typically something like invalid
format from opening up the .o files. */
bfd_set_error (bfd_error_no_error);
+ lang_clear_os_map ();
lang_for_each_statement (build_link_order);
if (config.split_by_reloc != (unsigned) -1