[coldfire-gnu-discuss] m5329 compiling and linking questions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[coldfire-gnu-discuss] m5329 compiling and linking questions
- To: "coldfire-gnu-discuss@xxxxxxxxxxxxxxxx" <coldfire-gnu-discuss@xxxxxxxxxxxxxxxx>
- Subject: [coldfire-gnu-discuss] m5329 compiling and linking questions
- From: Filip Klarić <fklaric@xxxxxxxxxxxxxxxxxx>
- Date: Wed, 19 Aug 2009 13:16:13 +0200
I have COBRA5329 board and I am a bit new to embedded programming
so few questions
When I compile my source with
m68k-uclinux-gcc -mcpu=5329 -Wl,-elf2flt -o exec_file file
I get working executable
When i do it with
m68k-uclinux-gcc -o obj_file -c file
&
m68k-uclinux-ld -L(to m5329 libc.a) -elf2flt -o exec_file obj_file
It gives 'Illegal instruction' error on target, acctualy it doesn't work with any libc library i select or with -msep-data or -mid-shared-library options
What is the catch? What happens when I use -mcpu option and auto-link file to compiler differently then when i do it manually?
ALSO
I get 'Unable to mmap process text, errno 12' a lot of times and it shouldn't be free memory problem
because my buddyinfo gives
"Node0, zone Normal 3 1 1 1 1 1 1 0 0 1 1 0"
It happens with any application that i compile with -msep-data option, even for those with few kBs in size
Is something wrong with my linker scripts (tried default and some changes it didn't work)?
Could it be that fault is in msep-data libraries?