On Monday 30 March 2009 08:03:01 Christopher Friedt wrote:
> On Mon, Mar 30, 2009 at 12:08 PM, Ahmed Ammar wrote:
> > You are saying that this code is expected to run by the bootloader (i.e.
> > no linux) therefore shouldn't you be using a non *-linux-* ? i.e.
> > something like armv5te-softfloat-elf?
>
> Yeah,  it is non-linux... I just don't feel like going through the
> trouble of building a new toolchain to compile / assemble some code
> that doesn't require any syscalls whatsoever. It is intended to be run
> directly from the bootloader.

then you cant use any libraries/files from glibc or gcc because they're 
assuming a Linux environment.  that means you need to use -nostdlib.  then you 
need to provide code to setup the C runtime environment (the "start" symbol 
entry point) which will tail off to the main() function.

also, the default linker script is targetting a Linux environment which means 
you'll probably also have to write your own linker script.
-mike

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to