This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Fix assertion failure on aliases of dynamic weak symbols
On Wed, Jul 18, 2007 at 04:58:42PM +0100, Richard Sandiford wrote:
> "H.J. Lu" <hjl@lucon.org> writes:
> > I think the proper way to fix this is
> >
> > 1. Select a different section for linker created symbol to avoid false
> > symbol alias in a shared library.
>
> I disagree. If the linker script defines a symbol in a section statement,
> why shouldn't the symbol belong to that section? I'm bet folk out there
> are relying on that behaviour.
>
I had an impression that linker tried to pick a section for linker
defined symbols. I was wrong.
H.J.