<div dir="ltr">Hi, all. Another problem in ARM assembly: I use LDR to load an external symbol :<br><br>
LDR         R7,=DataTable<br><br>But clang gives error: unexpected token in operand to the '=', <br>Then I change the code to:<br><br>LDR         R7,=DataTable<br><br>The error becomes: unsupported relocation on symbol. How can I get around this in clang? <br>
<br>Thanks in advance!<br><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Feb 25, 2013 at 7:14 PM, Ashi <span dir="ltr"><<a href="mailto:ashi08104@gmail.com" target="_blank">ashi08104@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi,all,<br>I've some problem when using clang compile my ARM assembly code:<br><br>
1 .qn directive<br>
In GAS, .qn directive is used to create typed
and/or indexed register aliases for use in Advanced SIMD Extension
(Neon) instructions.(<a href="http://sourceware.org/binutils/docs/as/ARM-Directives.html#ARM-Directives" target="_blank">http://sourceware.org/binutils/docs/as/ARM-Directives.html#ARM-Directives</a>)<br>But clang's integrated-as seems have different syntax, for example, my code:<br>


<br>input .qn Q6.F32 <br><br>Clang would give error: unexpected token in argument list<br><br>2 .unreq<br>Clang doesn't recognize .unreq,  my code is as below:<br><br>px .req r0<br>.unreq px<br>px .req r1<br><br>clang give error: redefinition of 'px' does not match original.<br>


<br>3 .end<br>clang also doesn't recognize .end directive<br><br>all my code is compiled by: clang -arch armv7 -v -integrated-as -g -mcpu=cortex-a9 -mfpu=neon -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk/<br>


<br>my clang version is: Apple LLVM version 4.2 (clang-425.0.24) (based on LLVM 3.2svn)<br><br>BTW, could any tell me which files implement integrated-as in clang source code, I think it may also help me by looking the source code(I've tried 'grep', but with no success.)<br>


<br>Great Thanks!<span><font color="#888888"><br><br>ashi<br></font></span></div>
</blockquote></div>ashi<br></div></div>