problem with big endian dynamically linked nptl/eabi apps

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

problem with big endian dynamically linked nptl/eabi apps

Marc Kleine-Budde
Hi!

Has somebody managed to build a working eabi/ntpl toolchain for big
endian am system. Even small apps break here with strange output:

root@ixp425:~> /mnt/main
/mnt/main: error while loading shared libraries:
/e/l/tls///libc.so.6piinvalid ELF heade/litls///l/bc./o.6ipibsbÂxl

This is a mixed oabi/eabi system. In oder to execute eabi apps easily.
But the same problem exists with oabi userland if you try to chroot into
a eabi one.

I've filled out a bugzilla report with compiler and strace output. See:
http://sources.redhat.com/bugzilla/show_bug.cgi?id=3558

Greets - Marc

---
  Dipl.-Ing. Marc Kleine-Budde | http://www.pengutronix.de
   Pengutronix - Linux Solutions for Science and Industry
     Handelsregister: Amtsgericht Hildesheim, HRA 2686
       Hannoversche Str. 2, 31134 Hildesheim, Germany
     Phone: +49-5121-206917-0 |  Fax: +49-5121-206917-9
Reply | Threaded
Open this post in threaded view
|

Re: problem with big endian dynamically linked nptl/eabi apps

Daniel Jacobowitz-2
On Tue, Nov 21, 2006 at 06:45:17PM +0100, Marc Kleine-Budde wrote:
> Hi!
>
> Has somebody managed to build a working eabi/ntpl toolchain for big
> endian am system. Even small apps break here with strange output:

Yes, many times.  I don't know if that GCC patch is correct; we usually
use multilibs or --with-endian.  Something in your build is definitely
confused about endianness; those slashes are in the totally wrong
place.  It looks like _dl_important_hwcaps has been miscompiled.

--
Daniel Jacobowitz
CodeSourcery