Gentoo Archives: gentoo-embedded

From: Ahmed Ammar <b33fc0d3@g.o>
To: gentoo-embedded@l.g.o
Subject: Re: [gentoo-embedded] gcc question - entry point problem in small, static app
Date: Mon, 30 Mar 2009 10:08:46
Message-Id: 1238407720.5111.21.camel@gentoo-dev
In Reply to: [gentoo-embedded] gcc question - entry point problem in small, static app by Christopher Friedt
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

Replies

Subject Author
Re: [gentoo-embedded] gcc question - entry point problem in small, static app Christopher Friedt <chrisfriedt@×××××.com>