LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Embedded & Single-board computer (http://www.linuxquestions.org/questions/linux-embedded-and-single-board-computer-78/)
-   -   command to make crt1.o from a crt1.S (http://www.linuxquestions.org/questions/linux-embedded-and-single-board-computer-78/command-to-make-crt1-o-from-a-crt1-s-4175410862/)

manoj7410 06-11-2012 08:43 AM

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....

knudfl 06-12-2012 03:12 AM

Post # 1 seems to be a solution concerning the tread about the same subject :

http://www.linuxquestions.org/questi...or-2-a-949330/


All times are GMT -5. The time now is 07:57 AM.