This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [PATCH] ELF: Hide symbols defined in discarded input sections
- From: Alan Modra <amodra at gmail dot com>
- To: "H.J. Lu" <hjl dot tools at gmail dot com>
- Cc: binutils at sourceware dot org
- Date: Thu, 25 Oct 2018 11:14:52 +1030
- Subject: Re: [PATCH] ELF: Hide symbols defined in discarded input sections
- References: <20181024224433.19602-1-hjl.tools@gmail.com>
On Wed, Oct 24, 2018 at 03:44:33PM -0700, H.J. Lu wrote:
> When assigning symbol version, we should hide debug symbols defined in
> discarded sections from IR objects so that they can be removed later.
>
> bfd/
>
> PR ld/23818
> * elflink.c (_bfd_elf_link_assign_sym_version): Hide symbols
> defined in discarded input sections.
>
> ld/
>
> PR ld/23818
> * testsuite/ld-plugin/lto.exp: Run PR ld/23818 test.
> * testsuite/ld-plugin/pr23818.d: New file.
> * testsuite/ld-plugin/pr23818.t: Likewise.
> * testsuite/ld-plugin/pr23818a.c: Likewise.
> * testsuite/ld-plugin/pr23818b.c: Likewise.
Looks good to me.
--
Alan Modra
Australia Development Lab, IBM