[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: [PATCH] thumb fixes
On Fri, Sep 05, 2008 at 10:39:09AM +0100, Richard Earnshaw wrote:
> Hmm, I remember now. I think this is an LD bug. When thumb code calls
> a PLT entry it needs to use an interworking call sequence (the BL needs
> to be turned into BLX on v5t). LD doesn't realize this because the PLT
> sequence is internally generated.
> I believe this has been fixed in FSF binutils, but probably not in
> NetBSD's in-tree version (and I can't remember if this was ever fixed in
> a GPLv2 release).
NetBSD comes with binutils 2.16.1 and some fixes so switching to
2.18.50 solves this thumb issues. The whole tree does not compile with
ld and others from binutils-2.18.50 but enough to run thumb mode /bin/sh
and /bin/cat work with thumb mode /lib/libc.so and others. Though
/libexec/ld.elf_so still needs to be in ARM mode.
Thank you, Richard!
Main Index |
Thread Index |