[Patch] Don't declare all text sections at the start of the .s

Rafael EspĂ­ndola rafael.espindola at gmail.com
Wed Mar 11 09:02:31 PDT 2015


Hi Jim,

If I understand it correctly, the code this patch removes was there to
make sure the text sections went before the dwarf sections. That is
necessary because MachO uses offsets relative to the start of the
file, so adding a section can change relaxations.

The dwarf sections were being printed at the start just to produce
symbols pointing at the start of those sections.

I think I unintentionally fixed the underlying issue in r231898. The
dwarf sections are now printed when they are about to be used, which
is after we printed the text sections.

Cheers,
Rafael
-------------- next part --------------
A non-text attachment was scrubbed...
Name: t.patch
Type: text/x-patch
Size: 7347 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150311/58e01b82/attachment.bin>


More information about the llvm-commits mailing list