Re: [coldfire-gnu-discuss] m5329 compiling and linking questions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [coldfire-gnu-discuss] m5329 compiling and linking questions
- To: Filip Klarić <fklaric@xxxxxxxxxxxxxxxxxx>
- Subject: Re: [coldfire-gnu-discuss] m5329 compiling and linking questions
- From: Daniel Jacobowitz <dan@xxxxxxxxxxxxxxxx>
- Date: Wed, 19 Aug 2009 08:02:35 -0400
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