This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: PATCH: ld/2218: Weak undefined symbol doesn't work properly with PIE
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: "H. J. Lu" <hjl at lucon dot org>
- Cc: binutils at sources dot redhat dot com
- Date: Fri, 17 Feb 2006 17:15:06 +1030
- Subject: Re: PATCH: ld/2218: Weak undefined symbol doesn't work properly with PIE
- References: <20060127070335.GA12281@lucon.org> <20060127100451.GH11405@bubble.grove.modra.org> <20060127142806.GB17187@lucon.org> <20060127150727.GA17704@lucon.org> <20060127174156.GA19587@lucon.org> <20060127234125.GA23665@lucon.org> <20060217045413.GL32576@bubble.grove.modra.org> <20060217061431.GA11083@lucon.org>
On Thu, Feb 16, 2006 at 10:14:31PM -0800, H. J. Lu wrote:
> On Fri, Feb 17, 2006 at 03:24:13PM +1030, Alan Modra wrote:
> > You didn't answer my question. I asked why you were patching that
> > particular place to fix undefined weak symbols in PIEs. See the patch
> > I've just committed for powerpc64.
>
> It is a generic ELF problem. Why does each backend have to handle it
> separately?
Well, if you are clever you might be able to make a generic patch that
handles undef weak in pie. The right place to do it is after all
symbols have been loaded.
--
Alan Modra
IBM OzLabs - Linux Technology Centre