This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [rfa:ppc64gnulinux] Call ".malloc"
- From: Kevin Buettner <kevinb at redhat dot com>
- To: Andrew Cagney <ac131313 at redhat dot com>, gdb-patches at sources dot redhat dot com
- Date: Thu, 13 Nov 2003 18:13:01 -0700
- Subject: Re: [rfa:ppc64gnulinux] Call ".malloc"
- References: <3FB42852.8090007@redhat.com>
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