This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: Linking eCos to a class
- From: Andrew Haley <aph at redhat dot com>
- To: "Sergio Forever" <cirudinezidane at gmail dot com>
- Cc: java at gcc dot gnu dot org
- Date: Mon, 24 Apr 2006 10:58:18 +0100
- Subject: Re: Linking eCos to a class
- References: <66c5cc790604240246m7b16b9ebm17d1ead49499d19d@mail.gmail.com> <66c5cc790604240249y59473cb8u201551a5e92339f7@mail.gmail.com>
Sergio Forever writes:
> I am trying to link eCos to a class. I have made the next steps:
>
> 1º To obtain a native code object
> 2º Create a executable from native code linking eCos.
>
> I have had problems with .plt memory regions
That should only happen if you're trying to link with a shared
library. Don't do that, then.
> NOTE: eCos is written in C.
> It is possible this theory?
I've done it, a long time ago.
Firstly, you'll need to build a special version of libgcj targeted at
eCos. This is necessary because large parts of libgcj are
OS-dependent.
I warn you now: this is going to be difficult. Apart from anything
else, gcj has never been ported to eCos threads. To get this to work
will require serious toolchain expertise and a lot of time.
Also, libgcj is big, much bigger than eCos. You'll need a target with
lots of memory.
Andrew.