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

Kevin Buettner kevinb@redhat.com
Fri Nov 14 01:15:00 GMT 2003


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



More information about the Gdb-patches mailing list