Re: [rfa:ppc64] Get descriptor FN from the same object file as symbol ".FN"

Kevin Buettner
2003-11-14T01:15:52Z

On Nov 13, 7:24pm, Andrew Cagney wrote:

> The attached tweaks the tail end of the ppc64_sysv_abi_push_dummy_call
> code so that it restricts the search for the descriptor FN (that
> corresponds to function ".FN") to the object file that contains ".FN".
> Given shared libraries, several object files can contain the same symbol
> so searching for an unqualified "FN" can end up finding the descriptor
> in the wrong shared library :-(. This problem occures when trying to go
> backwards from ".malloc" to "malloc".
>
> 2003-11-13 Andrew Cagney <cagney@redhat.com>
>
> * Makefile.in (ppc-sysv-tdep.o): Update dependencies.
> * ppc-sysv-tdep.c: Include "objfiles.h".
> (ppc64_sysv_abi_push_dummy_call): Provide the
> the FN's objfile when looking for the descriptor.

Okay.

Kevin