This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Drop undefined local symbols from symtab?


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]