View Single Post
Posts: 1,808 | Thanked: 4,272 times | Joined on Feb 2011 @ Germany
#1
Running Ubuntu 12.04 with gcc-4.6-arm-linux-gnueabi, version 4.6.3-1ubuntu5cross1.62.

I made a hello-world program and compiled it like this:

$ arm-linux-gnueabi-gcc -v -marm -o hello hello.c

I then copied hello to two N900s running Maemo5 PR1.3. One is running Nokia-OMAP kernel, the other KP50 (this is at least the most obvious difference).

Code:
OMAP$ ./hello
./hello: line 1: syntax error: unexpected word (expecting ")")
and
Code:
OMAP$ ldd ./hello
	libm.so.6 => /lib/libm.so.6 (0x4002f000)
	libc.so.6 => /lib/libc.so.6 (0x400a5000)
	/lib/ld-linux.so.3 (0x40000000)
On KP50 the executable runs fine and prints the message. Weird is also that ldd gives a different result:

Code:
KP50$ ldd ./hello
	libc.so.6 => /lib/libc.so.6 (0x40031000)
	/lib/ld-linux.so.3 (0x40000000)
How can this be?
I guess I'm missing something obvious. But libc6 is the same on both N900s.

I'd appreciate any pointers!
Thanks in advance.