This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [patch] Strange stepping behaviour with ppc32 with secure PLTs
On Tue, 2006-05-16 at 16:48 +0930, Alan Modra wrote:
> On Tue, May 16, 2006 at 08:34:04AM +0200, Mark Kettenis wrote:
> > Also, what's necessary for producing binaries with these stubs. Just
> > a new enough linker invoked with --secure-plt? Or do I need a new
> > enough compiler too?
>
> You need a new linker and all relocatable object files involved in the
> link must be compiled with -msecure-plt. That includes headers and
> static libraries. So.. Complete new toolchain. binutils+gcc+glibc.
>
Hold the presses! Could the fact that the libc being used does not have
a '.symtab' section be the cause of the problem? For some reason, the
library I was using has a '.dynsym' section, but no '.symtab' section.
I suspect that someone was trying to save some disc space and caused
several problems.
The routine 'bfd_get_synthetic_symtab' takes both static and dynamic
symbol tables as input. So it's no wonder it's not doing the right
thing if one is missing.
-=# Paul #=-