This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Porting kvm onto eCos


Yogesh Deshpande wrote:
> 
> Hi,
> 
>   I am trying to port Sun's KVM (KJava Virtual Machine) onto eCos.
> Entire source code is in C and is compiled and executed on the Linux.  I
> suppose that the same source code must get compiled with gcc cross compiler
> with minor changes such as replacing functions fseek(), ftell(), remove () etc
> with their equivalents. But while compiling  and linking the same source code
> using gcc cross compiler for eCos (host being Linux), compiler reports following
> errors:
> 
> ld: warning: cannot find entry symbol _start; defaulting to 08049d8c

Sounds like you aren't using the eCos linker script.

> undefined reference to `cyg_libc_stdio_stdout'
> undefined reference to `hal_longjmp'


Those should be in libtarget.a in the lib/ subdirectory of your installed
eCos directory. At a guess they are missing because the lack of linker
script means libtarget.a isn't being linked either.

Jifl
-- 
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
Maybe this world is another planet's Hell -Aldous Huxley || Opinions==mine


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]