[LLVMdev] llvm-gcc cross compiling for ARM

James Molloy James.Molloy at arm.com
Thu Jul 7 05:00:25 PDT 2011

Hi Yuvi,

crt{i,n,begin,end,0,1}.o are runtime objects that are OS-dependent. Are you compiling for baremetal or arm-linux?

If baremetal, you'd need to put your core startup code  in crt1.o, and create stub objects for the rest so the linker doesn't complain (touch test.c; clang -march=armv7 -c -o test.o test.c; cp test.o crt{i,n,begin,end}.o).



From: llvmdev-bounces at cs.uiuc.edu [mailto:llvmdev-bounces at cs.uiuc.edu] On Behalf Of Yuvaraj Ragupathi
Sent: 07 July 2011 12:39
To: llvmdev at cs.uiuc.edu
Subject: [LLVMdev] llvm-gcc cross compiling for ARM


I am trying to cross compile llvm-gcc front for ARM target

Followed below steps

#../llvm-gcc-4.2-2.9.source/configure --program-prefix=llvm- --enable-llvm=/home/yuvraj/llvm/llvm-2.9 --enable-languages=c,c++ --target=arm-none-linux-gnueabi

# make

I am getting some kind of linker errors

/opt/arm-2010.09/bin/arm-none-linux-gnueabi-ld: cannot find crtn.o: No such file or directory

@ final stage.

I copied  crtn.o to current working directory. But getting same issue

How do i resolve this issue?


Yuvi R

-- IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20110707/2d65351f/attachment.html>

More information about the llvm-dev mailing list