[U-Boot-Users] warning:cannot find entry symbol _start
Jhavk
jhavk_2000 at yahoo.com
Wed Nov 3 05:28:56 CET 2004
Hello, i want to make a standalone application which
is separate from the address space of uboot.
Its a simple hello_world application.For this to run i
needed the serial driver which i got from uboot/
cpu/arm920t/serial.c
For division i have got _udivsi3.S and div0.c files
from uboot.
I call serial_init in my main.
I make hello_world.bin in a way similar to that in
uboot.
The only diifernece is that i compile with nostdlib
and static option.
This is my makefile :
CC = arm-linux-gcc
OBJCOPY = arm-linux-objcopy
CURDIR = /home/pigfire/serial
INCS = $(CURDIR)
CFLAGS = -Wall -static -nostdlib -I$(INCS)
DEPS = s3c2440.h speed.h
#########################################################################
All: hello_world hello_world.srec
hello_world.bin
all: $(ALL)
%.o: %.c $(DEPS)
$(CC) -c -o $@ $< $(CFLAGS)
hello_world: hello_world.o _udivsi3.o div0.o
$(CC) -o hello_world hello_world.o
_udivsi3.o div0.o $(CFLAGS) -I.
hello_world.srec:
$(OBJCOPY) -O srec hello_world
hello_world.srec
hello_world.bin:
$(OBJCOPY) -O binary hello_world
hello_world.bin 2>/dev/null
#########################################################################
clean:
rm -f *.o hello_world *.a *.bin *.srec
But the problem is when i compile i get:
/usr/local/arm/2.95.3/arm-linux/bin/ld: warning:
cannot find entry symbol _start; defaulting to
00008074
And i get all three binaries.
But when i run hello_world.bin it hangs.
Why do i get this problem and why this problem does
not occur in hello_world example of uboot?
Regards,
Jhavk
__________________________________
Do you Yahoo!?
Check out the new Yahoo! Front Page.
www.yahoo.com
More information about the U-Boot
mailing list