This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: PowerPC64 ELFv1 undefined weak functions
On Thu, Aug 11, 2016 at 10:58:24AM +0100, Nick Clifton wrote:
> Hi Alan,
>
> > Undefined weak functions, like __gmon_start__, were not being made
> > dynamic or emitting plt call code. While the behaviour of undefined
> > weak symbols is not defined in the ELF standard, the intention on
> > powerpc64 was to make it possible to link without a definition of such
> > symbols and at run time behave the same as if a definition was found
> > at link time in a shared library.
>
> Do you think that it would be worth creating a new test, probably in gcc,
> to check that this behaviour does work as expected ?
Yes. We could probably cobble together something to add to the ld
testsuite, possibly in ld-elfweak. It wouldn't need to test
__gmon_start__. A different undefined symbol not in reserved name
space would be better.
--
Alan Modra
Australia Development Lab, IBM