[rfa:ppc64gnulinux] Call ".malloc"
Andrew Cagney
ac131313@redhat.com
Fri Nov 14 00:56:00 GMT 2003
Hello,
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?
Andrew
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: diffs
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20031114/3c36a0a4/attachment.ksh>
More information about the Gdb-patches
mailing list