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