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:ppc64gnulinux] Call ".malloc"


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

> When only minimal symbol information is available, the symbol "malloc", 
> which is found in a data section because it's a descriptor, gets turns 
> into a 32-bit int variable.  Consequently, an attempt to call "malloc" 
> is turned into to jump to the code designated by that 32-bit integer 
> value found at malloc.
> 
> This patch avoids that problem entirely by specifying that on PPC64 
> GNU/Linux, the "malloc" function has the name ".malloc" (which is really 
> the function's start address).
> 
> ok?

Sounds good to me.

Kevin


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