[PATCH] [lld] Enable writing of compact unwind sections

Nick Kledzik kledzik at apple.com
Mon Jun 23 09:09:50 PDT 2014


Tim,

The compact unwind section in final linked images (__TEXT, __unwind_info) is a completely different format than the compact unwind info in object files (__LD,__compact_unwind).  It requires a bit of processing to create the (compressed) __unwind_info section.  If you want to get around the assert, for now you can create a place holder function that takes all the __compact_unwind unwind atoms and replaces them with one __unwind_info atom.

Also, we usually add the sub-area of lld to patches/commits subject line (e.g. "[lld][mach-o] blah”).

-Nick 

On Jun 23, 2014, at 4:24 AM, Tim Northover <t.p.northover at gmail.com> wrote:
> It seems the MachO writer can read in __LD,__compact_unwind sections,
> but can't write them out at the moment (at least, when creating an
> executable file). This causes an assert when generating most final
> MachO files.
> 
> From what I can tell, they should be moved to __TEXT, __unwind_info in
> final images, so this patch implements that (but not any of the other
> associated special behaviour).
> 
> OK to commit?
> 
> Cheers.
> 
> Tim.
> <macho-write.diff>_______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits





More information about the llvm-commits mailing list