This is the mail archive of the
mailing list for the binutils project.
Re: PATCH: ld/2218: Weak undefined symbol doesn't work properly with PIE
On Fri, Jan 27, 2006 at 08:34:51PM +1030, Alan Modra wrote:
> On Thu, Jan 26, 2006 at 11:03:35PM -0800, H. J. Lu wrote:
> > We should treat global symbols in PIE like shared library.
> Perhaps. But please explain why the place you are patching is the
> correct place to fix a problem with weak syms. I don't think your patch
> is correct.
PIE is like DSO when the undefined weak symbols are concerned. They
have to be dynamic symbols so that ld.so can handle them properly. I
will check in my testcase shortly so that you can check it out.