Hi all, I successfully cross-compiled 'Hello World' for my new Nokia N9. the N9 uses a Linux version. (Called Maemo-6 or Meego-Harmattan, depending on who you ask)
But when I try to link to libc, (for example by adding the cwstrings unit) the application crashes at startup (in _dl_init, called from ld-linux.so) Most probably because a invalid entry point, the linker gives the following error: Linking hello /home/CNOC/joost/QtSDK/Madde/toolchains/arm-2009q3-67-arm-none-linux-gnueabi-x86_64-unknown-linux-gnu/arm-2009q3-67/bin/arm-none-linux-gnueabi-ld: warning: cannot find entry symbol cs=/home/CNOC/joost/QtSDK/Madde/targets/harmattan_10.2011.34-1/specs; defaulting to 0000000000008484 11 lines compiled, 0.2 sec As you can see I use the toolchain (ld, as and libraries/so-files) from the toolchain from the Nokia-sdk. I don't know what that specs file is for, but it contains the following: ======= %rename cc1 old_cc1 *cc1: -march=armv7-a -mcpu=cortex-a8 -mfpu=vfp -mfloat-abi=hard -fno-omit-frame-pointer -fno-optimize-sibling-calls %(old_cc1) %rename link old_link *link: -O 1 --hash-style=gnu -L=/usr/lib/gcc/arm-linux-gnueabi/4.4 %(old_link) ======= Any idea how to proceed? Joost. -- My Lazarus blog: http://www.lazarussupport.com/lazarus/weblog _______________________________________________ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel