[llvm-commits] [PATCH][RFC] Disable data region directives

Chris Lattner clattner at apple.com
Mon Nov 26 17:55:32 PST 2012


On Nov 26, 2012, at 5:36 PM, Joe Abbey <joe.abbey at gmail.com> wrote:

> Jim,
> 
> Without going into too much detail, current llc produced ios-arm assembly cannot be assembled by Xcode <= 4.4.1.  This is because as of r157062 .data_region directives are being emitted in asm.  The latest and greatest Apple cctools have no issue, but alas... older Xcodes are left in the lurch despite still being in use.
> 
> The intention is to provide a switch to llc to omit the emission of .data_regions so that older assemblers can still proceed.  Since the directive seems primarily useful for introspection tools, it seems harmless to disable.  I've tested this internally and it seems to be the case that the directives are optional, but I'm sure you have a better perspective on the purpose of identifying data regions through Mach-O  load commands.
> 
> As an aside, I'd <3 someone to update https://developer.apple.com/library/mac/#documentation/developertools/conceptual/MachORuntime/Reference/reference.html

Why are you trying to use mainline llvm with an old Xcode assembler?  That isn't a supported config (by Apple) and is likely to break in a lot of ways going forward.  Can't you just use the integrated assembler anyway?

-Chris

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20121126/50f4dc68/attachment.html>


More information about the llvm-commits mailing list