This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]