command to make crt1.o from a crt1.S
crt1.o file tells the starting of our c program.
it contains _start
and then main
.
.
its code is.
.
.
.global _start
.extern main
.extern exit.
.
.
arm-linux-gcc -c crt1.S
.
then copy the crt1.o file into target's bin directory.
same procedure is for crti.o
.
it will remove error called. crt1.o not found.
I used fedora 15.
gcc-4.5.1
kernel-2.6.10.
.
for beagle board.
.
.
Enjoy....
Last edited by manoj7410; 06-11-2012 at 08:45 AM.
|