[llvm-commits] [patch] Add a InitSections method to the streamer interface

Rafael Espindola espindola at google.com
Wed Sep 15 08:59:11 PDT 2010


I was having a hard time debugging my lest patch so I decided to code
something that makes testing easier first. What this patch does is move
the hard coded initial section selection into a MC streamer method. This
way we can use the ELF streamer without passing the -n option to
llvm-mc and the initial sections created matches those created by
gnu as. This make comparing the output of "readelf -aW" a lot easier.

I also tested this by compiling and running screen :-)

A small part of the hack remains in the text streamer in that it still
uses the macho section. I would think that the text streamer should
not set the initial sections, since the real assembler using the text
we are printing will. If others agree, I will change this in a followup
patch.

Cheers,
-- 
Rafael Ávila de Espíndola
-------------- next part --------------
A non-text attachment was scrubbed...
Name: init-sections.patch
Type: application/octet-stream
Size: 10401 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20100915/90072395/attachment.obj>


More information about the llvm-commits mailing list