Ollie Lho <[EMAIL PROTECTED]> writes:

> 
> 
> What is the defination of "valid ELF file" ?? My elfImage should be
> "valid" ELF file but can not be loaded because of the "range conflict".

I have a complete definition of that, and I will post it again shortly.

Your problem is that it is trying to overwrite linuxBIOS.  And that check
has been present in my elfbooting code for 9 months.  

What is not well defined is what addresses that linuxBIOS will use.

> If gcc's default crt0.S does not work, which one can ?? Is it ubs_start.S ??
> Say, I have a hello.c like this
> 
> #include <printk.h>
> main()
> {
>       printk_debug("hello world\n");
> }
> 
> How can I build a ELF image that can be loaded by ELF boot ??
> Should I do as:
> 
>       gcc -c ube_start.S
>       gcc -c hello.c
>       gcc -nostdlib -nostartfiles -static -T ldscript.ld -o hello\
>       ube_start.o hello.o
> 
> BTW, Can you provide a sample crt0.S and code to read LinuxBIOS table.
> Something like libgcc ??

The big change is that crt0.S really does not need to be involved.  But yes
I'll provide a simple example.

Eric

Reply via email to