This is the mail archive of the
mailing list for the GDB project.
Re: /lib64/ld64.so.1 not being added to target sections list on ppc64
Paul Gilliam <firstname.lastname@example.org> writes:
> There is another table of sections that is used when the gdb command 'info
> symbol' is used. If I go:
> (gdb) p &malloc
> (gdb) info symbol $1
> gdb responds 'malloc is in the .opd section'
> I don't understand:
> 1) why are there two section tables?
> 2) why aren't sections from /lib64/ld64.so.1 being loaded into the target
> sections table?
> 3) why is the function pointer for 'malloc' pointing to a plt in the
> /lib64/ld64.so object and not one in the main executable?
The problem is that there are two malloc implementation, the early one in
ld64.so and the real one in libc.so. Unless you have debugging symbols
for libc.so the real one is never found.
Andreas Schwab, SuSE Labs, email@example.com
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."