[arm-gnu] Problem compiling "hello world!" app for using the generic-m.ld script in Ubuntu
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[arm-gnu] Problem compiling "hello world!" app for using the generic-m.ld script in Ubuntu
- To: arm-gnu@xxxxxxxxxxxxxxxx
- Subject: [arm-gnu] Problem compiling "hello world!" app for using the generic-m.ld script in Ubuntu
- From: Robert Taylor <das.bobby2000@xxxxxxxxx>
- Date: Mon, 16 Mar 2009 14:28:23 +0000
Hi,
I can compile the hello world app fine using the generic-hosted script
i.e. arm-none-eabi-gcc -o hello hello.c -T generic-hosted.ld. However,
when I try to compile the same code with the command:
arm-none-eabi-gcc -o hello hello.c -T generic-m-hosted.ld, I get:
taylorr@ubuntu:~/scratch$ arm-none-eabi-gcc -o hello hello.c -T
generic-m-hosted.ld
/home/taylorr/CodeSourcery/Sourcery_G++_Lite/bin/../lib/gcc/arm-none-eabi/4.3.2/../../../../arm-none-eabi/bin/ld:
cannot open linker script file generic-m-hosted.ld: No such file or
directory
collect2: ld returned 1 exit status
If I use the -L flag: taylorr@ubuntu:~/scratch$ arm-none-eabi-gcc -o
hello hello.c -L
~/CodeSourcery/Sourcery_G++_Lite/arm-none-eabi/lib/thumb2 -T
generic-m-hosted.ld, the code compiles fine. If I then try running
hello under arm-none-eabi-gdb or arm-none-eabi-run, I don't get the
Hello World! output the simulators just hang.
Any ideas?
Thanks,
Robert