PR11375, powerpc64 segfault in call_gmon_start

Alan Modra amodra@gmail.com
Thu Mar 18 10:12:00 GMT 2010


On Sat, Mar 13, 2010 at 08:59:51AM +1030, Alan Modra wrote:
> My 2009-09-18 change to ppc64_elf_relocate_section broke linking of
> large old-style dot-symbol binaries.  If they happened to need toc
> adjusting stubs to support multiple toc sections, the lookup in
> relocate_section failed to match the stub created.  (The lookup used
> the function descriptor symbol but the stub was created with the
> entry dot-symbol.)  This meant you'd get a call that used the wrong
> toc pointer, usually causing a crash at startup in call_gmon_start.

Sigh.  powerpc64-linux-ld is still not generating all the toc
adjusting stubs for multiple toc binaries, even with new-style
objects.  Investigating.

-- 
Alan Modra
Australia Development Lab, IBM



More information about the Binutils mailing list