Hello, all,
I have successfully compiled the uClinux and downloaded it to my Evaluation
board LPC2468. It works fine. But when I compiled the first test application
with command as "arm-elf-g++ -Wl,-elf2flt -o test10 main.cpp", then downloaded
and let it run on board, I alwqays got the error like "reloc outside program".
I don't know why!!!
Interesting is, when I compile "gdbserver" alone, I mean not together with the
compilation of kernel, it has the same problem. But it worked when it was
compiled with kernel together!!!
Maybe I need extra parameters for the compilation?
Can anyone here help me?
My environment is built according to the specification on the EmbbededArtists'
website,
tool chain:
arm-elf-tools-20040427,
uClinux:
uClinux-dist-20051014 as recommended by EmbeddedArtists
linux:
linux-2.6.11.8
Host,
ubuntu
and still some patchs from EmbeddedArtists.
The output of compilation is as follows,
**** Build of configuration Debug for project test10 ****
make all
Building file: ../src/test10.cpp
Invoking: GCC C++ Compiler
arm-elf-g++ -O0 -g3 -Wall -c -v -MMD -o"src/test10.o" "../src/test10.cpp"
Reading specs from /usr/local/lib/gcc-lib/arm-elf/2.95.3/specs
gcc version 2.95.3 20010315 (release)(ColdFire patches - 20010318 from
http://fiddes.net/coldfire/)(uClinux XIP and shared lib patches from
http://www.snapgear.com/)
/usr/local/lib/gcc-lib/arm-elf/2.95.3/cpp0 -lang-c++ -v -MMD test10.d
-D__GNUC__=2 -D__GNUG__=2 -D__GNUC_MINOR__=95 -D__cplusplus -Darm -Darm_elf
-D__ELF__ -D__arm__ -D__arm_elf__ -D__ELF__ -D__arm -D__arm_elf -Acpu(arm)
-Amachine(arm) -D__EXCEPTIONS -D__CHAR_UNSIGNED__ -g3 -Wall -D__ARM_ARCH_4T__
-D__APCS_32__ ../src/test10.cpp /tmp/cc0yc4k9.ii
GNU CPP version 2.95.3 20010315 (release)(ColdFire patches - 20010318 from
http://fiddes.net/coldfire/)(uClinux XIP and shared lib patches from
http://www.snapgear.com/) (ARM/ELF non-Linux)
#include "..." search starts here:
#include <...> search starts here:
/usr/local/arm-elf/stlport
/usr/local/lib/gcc-lib/arm-elf/2.95.3/include
/usr/local/lib/gcc-lib/arm-elf/2.95.3/../../../../arm-elf/include
End of search list.
The following default directories have been omitted from the search path:
/usr/local/lib/gcc-lib/arm-elf/2.95.3/../../../../arm-elf/sys-include
End of omitted list.
/usr/local/lib/gcc-lib/arm-elf/2.95.3/cc1plus /tmp/cc0yc4k9.ii -quiet
-dumpbase test10.cc -g3 -O0 -Wall -version -o /tmp/ccNAbOYi.s
GNU C++ version 2.95.3 20010315 (release)(ColdFire patches - 20010318 from
http://fiddes.net/coldfire/)(uClinux XIP and shared lib patches from
http://www.snapgear.com/) (arm-elf) compiled by GNU C version 3.3.2 20031022
(Red Hat Linux 3.3.2-1).
/usr/local/arm-elf/bin/as -osrc/test10.o /tmp/ccNAbOYi.s
Finished building: ../src/test10.cpp
Building target: test10
Invoking: GCC C++ Linker
arm-elf-g++ --verbose -Wl,-elf2flt -o"test10" ./src/test10.o
Reading specs from /usr/local/lib/gcc-lib/arm-elf/2.95.3/specs
gcc version 2.95.3 20010315 (release)(ColdFire patches - 20010318 from
http://fiddes.net/coldfire/)(uClinux XIP and shared lib patches from
http://www.snapgear.com/)
/usr/local/lib/gcc-lib/arm-elf/2.95.3/collect2 -X -otest10
/usr/local/arm-elf/lib/crt0.o -L/usr/local/lib/gcc-lib/arm-elf/2.95.3
-L/usr/local/arm-elf/lib -elf2flt ./src/test10.o -lstdc++ -lm -lgcc -lc -lgcc
Finished building target: test10
Thanks
_________________________________________________________________
您可以借助 Windows Live 整理、编辑和共享您的照片。
http://www.microsoft.com/china/windows/windowslive/products/photo-gallery-edit.aspx
_______________________________________________
uClinux-dev mailing list
uClinux-dev@uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev@uclinux.org
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev