diff options
author | Alan Modra <amodra@gmail.com> | 2014-08-14 13:49:31 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2014-08-14 13:49:31 +0930 |
commit | 18cd5bce47dc4a33dd1d8e3036b99d2fa7e3234f (patch) | |
tree | a45e5b4efa46052d1f8bf538e0695e2b264795a5 /ld/ldlang.h | |
parent | b879806f2fdd2eca7092d7b854d6cbbbbbd0493b (diff) | |
download | gdb-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/ldlang.h')
-rw-r--r-- | ld/ldlang.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ld/ldlang.h b/ld/ldlang.h index 2afe283..5f6faae 100644 --- a/ld/ldlang.h +++ b/ld/ldlang.h @@ -636,6 +636,8 @@ extern void *stat_alloc (size_t); extern void strip_excluded_output_sections (void); +extern void lang_clear_os_map + (void); extern void dprint_statement (lang_statement_union_type *, int); extern void lang_size_sections |