I notice also that the glibc in maemo chinook seems to have support for
GNU_HASH linking style. Unfortunately the binutils for scratchbox are
too old to allow you to use the -Wl,--hash-style=both LDFLAGS to
activate this linking mode.

I have built and updated a copy of my scratchbox to
binutils_2.18.1~cvs20080103-4_armel.deb
from debian. I had to change a few of the "ld" executables manually, for
example in here;
/scratchbox/compilers/cs2005q3.2-glibc2.5-arm/arm-none-linux-gnueabi/bin

But after this I can compile and link a trivial main.cpp into a main
using only the GNU_HASH style. The resulting executable can execute fine
on an n810. So, with the executable compiled without style=both means
that a chinook device seems happy to read and execute a GNU_HASH
executable.

I'm having troubles making the new binutils stick in the scratchbox for
more complex applications compiled with autotools. Has anyone else
updated their binutils and have any tips they would like to share? When
I try to compile a more complex autotools app I'm getting ld returned
126 errors. Luckily I've got scratchbox itself installed in a virtual
machine so I can tinker and rollback easily :)

I'll have another crack at the cross compiling link farm tomorrow...

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers

Reply via email to