1 |
On Mon, 2009-03-30 at 10:44 +0200, Christopher Friedt wrote: |
2 |
> I'm writing code in C for a very small static binary, and the code |
3 |
> doesn't use any headers or rely on any other libraries. It's quite |
4 |
> tiny and only does a very specific job - it initializes a uart and |
5 |
> repeatedly prints a message out in an infinite loop. It's intended to |
6 |
> be run by the bootloader instead of a kernel to test out the uart |
7 |
> hardware. |
8 |
> |
9 |
> When I'm compiling the code, I'm using |
10 |
> |
11 |
> arm-softfloat-linux-gnueabi-gcc -Wall -fomit-frame-pointer -pipe -Os |
12 |
> -march=armv5te -static -o hello_uart hello_uart.c |
13 |
|
14 |
You are saying that this code is expected to run by the bootloader (i.e. |
15 |
no linux) therefore shouldn't you be using a non *-linux-* ? i.e. |
16 |
something like armv5te-softfloat-elf? |
17 |
|
18 |
AA |