[coldfire-gnu-discuss] m5329 compiling and linking questions
Daniel Jacobowitz
dan at codesourcery.com
Wed Aug 19 12:02:35 UTC 2009
On Wed, Aug 19, 2009 at 01:16:13PM +0200, Filip Klarić wrote:
> 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
Don't try to use ld directly. We strongly recommend using GCC to
link.
If you want to see what it's doing behind the scenes, you can add -v
to the compiler command line.
--
Daniel Jacobowitz
CodeSourcery
More information about the coldfire-gnu-discuss
mailing list