This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [PATCH] add --ignore-unresolved-symbol from NetBSD (bug#14426)
- From: Jan Beich <jbeich at tormail dot org>
- To: binutils at sourceware dot org
- Date: Mon, 13 Aug 2012 07:51:45 +0300
- Subject: Re: [PATCH] add --ignore-unresolved-symbol from NetBSD (bug#14426)
- References: <1T0lct-0000kY-TV@internal.tormail.org>
Jan Beich <jbeich@tormail.org> writes:
> Allow a specific symbol to be unresolved. This can be useful to let
> runtime linker resolve the symbol despite using -Wl,-z,defs.
2012-08-01 Jan Beich <jbeich@tormail.org>
bfd/
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.
* lexsup.c (ld_options): Add --ignore-unresolved-symbol description.
* ldmain.h (add_ignoresym): Declare.
* ldmain.c (add_ignoresym): Define.
* ldmain.c (undefined_symbol): Return if the symbol is ignored.
And when config.warn_once store the hash in info->ignore_hash.