This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: Eclipse / CDT without Makefile Project
- From: John Dallaway <john at dallaway dot org dot uk>
- To: Michael Jones <mjones at linear dot com>
- Cc: eCos Discussion <ecos-discuss at ecos dot sourceware dot org>
- Date: Thu, 20 Dec 2012 08:31:58 +0000
- Subject: [ECOS] Re: Eclipse / CDT without Makefile Project
- References: <CF3CE19A-837E-4CF9-B2E9-26A615BC0585@linear.com>
Mike
On 20/12/12 07:44, Michael Jones wrote:
> I have been trying to make an Eclipse/CDT (Juno) project for eCos, but not a
> Makefile project. Mainly so that it can navigate to h files, and try to see
> if it will drive GDB.
>
> Eclipse seems to ignore linker options and do its own thing. For example, for
> the linker I have:
>
> -mcpu=cortex-m3 -mthumb -Wl,--gc-sections -Wl,-static -Wl,-n -g -v -nostdlib -T../../ecos/TWR-K60D100M_install/lib/target.ld
>
> But, it appears that some options, like -T are ignored. And the linker tries
> to link in crt0.o, even if I set the compile options to not include startup
> files.
You are missing the -L linker option specifying the library search path
(location of libtarget.a). Try modifying your command line as follows:
> -mcpu=cortex-m3 -mthumb -Wl,--gc-sections -Wl,-static -Wl,-n -g -v -nostdlib -L../../ecos/TWR-K60D100M_install/lib -Ttarget.ld
I hope this helps...
John Dallaway
eCos maintainer
http://www.dallaway.org.uk/john
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss