[ECOS] [redboot] Compiling & Linking Apps.

Nick Garnett nickg@ecoscentric.com
Mon Mar 20 14:03:00 GMT 2006

David Fernandez <dfernandez@cct.co.uk> writes:

> I see what you mean, at least for some of the examples in eCos. Lets say
> that I'm trying to replace or add some binary parts in my application
> without having to recompile and include a the common application code
> and/or a c library in each binary.

In this case what you want is the object loader (in
services/objloader). It allows object files to be loaded and linked in
to an existing executable. Very similar to the way that kernel modules
work in Linux.

So what you need to do is build a base application containing all the
parts of the C library you will need, and then load the extra parts as
you need them. 

The loader is fairly new, and there is currently only support for
handling PowerPC and i386 relocations. However, it is easily exendable
to other platforms.

Nick Garnett                                 eCos Kernel Architect
http://www.ecoscentric.com            The eCos and RedBoot experts
Visit us at ESC Silicon Valley, April 4-6 2006.         Booth 1448
San Jose McEnery Convention Center  http://www.embedded.com/esc/sv

Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

More information about the Ecos-discuss mailing list