This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [PATCH] Override the previous definition from IR object
- 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: Sat, 8 Dec 2018 09:51:51 +1030
- Subject: Re: [PATCH] Override the previous definition from IR object
- References: <20181207142303.30849-1-hjl.tools@gmail.com>
On Fri, Dec 07, 2018 at 06:23:03AM -0800, H.J. Lu wrote:
> Mark the previous definition from IR object as undefined so that the
> generic linker will override it.
>
> bfd/
>
> PR ld/23958
> * elflink.c (_bfd_elf_add_default_symbol): Override the previous
> definition from IR object.
>
> ld/
>
> PR ld/23958
> * testsuite/ld-plugin/lto.exp: Run PR ld/23958 test.
> * testsuite/ld-plugin/pr23958.c: New file.
> * testsuite/ld-plugin/pr23958.t: Likewise.
Looks good.
--
Alan Modra
Australia Development Lab, IBM