[maemo-developers] Prelinking and GNU Hashstyle on maemo?

From: Ben Martin monkeyiq at users.sourceforge.net
Date: Tue May 6 18:23:46 EEST 2008
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...

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.maemo.org/pipermail/maemo-developers/attachments/20080507/cf6b87b8/attachment.pgp 
More information about the maemo-developers mailing list