Package: klibc
Version: 1.5.20-1

On Fri, Feb 18, 2011 at 01:42:31PM +0000, Colin Watson wrote:
> We've been experimenting with bringing up a ppc64 port of Ubuntu.  As
> part of this I found that, much like ia64 (#439181), klibc shared
> binaries simply segfault on ppc64: they seem to be loading
> __malloc_head.next_free from the wrong place so as soon as anything
> calls malloc it segfaults.

Confirmed.  The problem is that the correct toc pointer (r2) is not
being set on calls into klibc.  Instead of going via a plt call stub,
a call just goes directly like any other call to locally defined
functions.

> so perhaps you could add it to the list of
> architectures that need static binaries?

A better fix would be to teach GNU ld how to handle -R objects.  I'm
looking into that.  Another workaround is simply to never build ppc64
klibc.  After all, ppc64 machines will quite happily run ppc32 klibc
and 32-bit binaries are likely to be smaller.

-- 
Alan Modra
Australia Development Lab, IBM



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to