[LLVMdev] ARM assembler's syntax in clang

Ashi ashi08104 at gmail.com
Tue Feb 19 17:50:02 PST 2013


>Apple requires a leading _ for all external symbols. So "works as
>expected".
Thanks.

Do you have any advice to make the code work both under Apple and GNU gcc?

Best regards,
ashi


On Tue, Feb 19, 2013 at 8:20 PM, Joerg Sonnenberger <joerg at britannica.bec.de
> wrote:

> On Tue, Feb 19, 2013 at 06:53:19PM +0800, Ashi wrote:
> > My develop environment is:
> > Apple LLVM version 4.2 (clang-425.0.24) (based on LLVM 3.2svn)
> >
> > Undefined symbols for architecture armv7:
> >   "_add_gas", referenced from:
> >       _main in main_ios_clang.o
>
> Apple requires a leading _ for all external symbols. So "works as
> expected".
>
> Joerg
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130220/beb31ca2/attachment.html>


More information about the llvm-dev mailing list