[LLVMdev] ambiguity of .align
deeppatel1987 at gmail.com
Mon Jan 25 18:43:09 PST 2010
Assuming you're working with an ARM target, you may also hit a problem
with the alignment option on the .comm directive.
Attached is a first-cut patch for this latter problem.
On Mon, Jan 25, 2010 at 5:42 PM, Edmund Grimley Evans
<Edmund.Grimley-Evans at arm.com> wrote:
> I just got this error message from the GNU assembler:
> Error: alignment too large: 15 assumed
> Which made me laugh at first. The corresponding input line was:
> .align 16
> Apparently what's going on here is that ".align 16" is ambiguous: on
> some architectures it means ".balign 16", and on some it means ".p2align
> 16", which would mean ".balign 65536" if it were allowed. See:
> I'm not sure what the best way is to fix this. If LLVM wants to support
> other assemblers presumably an architecture-dependency is required.
> 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.
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 4142 bytes
Desc: not available
More information about the llvm-dev