This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Drop undefined local symbols from symtab?
- From: "H.J. Lu" <hjl dot tools at gmail dot com>
- To: Binutils <binutils at sourceware dot org>
- Date: Wed, 18 Feb 2015 03:34:43 -0800
- Subject: Re: Drop undefined local symbols from symtab?
- Authentication-results: sourceware.org; auth=none
- References: <20150218112716 dot GB11515 at bubble dot grove dot modra dot org>
On Wed, Feb 18, 2015 at 3:27 AM, Alan Modra <amodra@gmail.com> wrote:
> Does anyone see any harm in dropping undefined local symbols from
> .symtab? I've been meaning to do this for a while, mainly to get rid
> of undefined ppc64 "dot-symbols".
>
> diff --git a/bfd/ChangeLog b/bfd/ChangeLog
> index 44fc2bb..138c4ba 100644
> --- a/bfd/ChangeLog
> +++ b/bfd/ChangeLog
> @@ -1,3 +1,8 @@
> +2015-02-18 Alan Modra <amodra@gmail.com>
> +
> + * elflink.c (elf_link_input_bfd): Drop undefined local syms.
> + (elf_link_output_extsym): Likewise. Tidy. Expand comment.
> +
> 2015-02-17 Alan Modra <amodra@gmail.com>
Can you also strip undefined global symbols:
https://sourceware.org/bugzilla/show_bug.cgi?id=4317
Thanks.
--
H.J.