aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2012-10-22 13:33:49 +0000
committerAlan Modra <amodra@gmail.com>2012-10-22 13:33:49 +0000
commit0e86e20e046ab38f95fb405f91a7b3a1ec7d7aba (patch)
treec2a68a3c1a476de3ae7a0aed1995bac6e3bed1ec /include
parentef8e09a0817e4636f5523afc2feac00a4f173977 (diff)
downloadgdb-0e86e20e046ab38f95fb405f91a7b3a1ec7d7aba.zip
gdb-0e86e20e046ab38f95fb405f91a7b3a1ec7d7aba.tar.gz
gdb-0e86e20e046ab38f95fb405f91a7b3a1ec7d7aba.tar.bz2
include/
PR ld/14426 * bfdlink.h (bfd_link_info): Add ignore_hash. ld/ PR ld/14426 * ldlex.h (option_values): Add OPTION_IGNORE_UNRESOLVED_SYMBOL. * lexsup.c (parse_args): Likewise. (ld_options): Describe --ignore-unresolved-symbol. * ldmain.h (add_ignoresym): Declare. * ldmain.c (add_ignoresym): New function, extracted from.. (undefined_symbol): ..here. Return if the symbol is in ignore_hash. (constructor_callback): Don't use global link_info here. (reloc_overflow): Likewise.
Diffstat (limited to 'include')
-rw-r--r--include/ChangeLog5
-rw-r--r--include/bfdlink.h4
2 files changed, 9 insertions, 0 deletions
diff --git a/include/ChangeLog b/include/ChangeLog
index e702ebe..a731efb 100644
--- a/include/ChangeLog
+++ b/include/ChangeLog
@@ -1,3 +1,8 @@
+2012-10-22 Jan Beich <jbeich@tormail.org>
+
+ PR ld/14426
+ * bfdlink.h (bfd_link_info): Add ignore_hash.
+
2012-10-08 Jason Merrill <jason@redhat.com>
* demangle.h (enum demangle_component_type): Add
diff --git a/include/bfdlink.h b/include/bfdlink.h
index d900b47..aaac244 100644
--- a/include/bfdlink.h
+++ b/include/bfdlink.h
@@ -435,6 +435,10 @@ struct bfd_link_info
option). If this is NULL, no symbols are being wrapped. */
struct bfd_hash_table *wrap_hash;
+ /* Hash table of symbols which may be left unresolved during
+ a link. If this is NULL, no symbols can be left unresolved. */
+ struct bfd_hash_table *ignore_hash;
+
/* The output BFD. */
bfd *output_bfd;