<div dir="ltr">Few comments:<div><br></div><div>a) why not virtual and override for ChangeSection?</div><div>b) every where you pass true/false to createObjectStreamer you should comment what it is,</div><div>c) Is there a way to just subclass the mach-o MCObjectStreamer to avoid the boolean?</div><div><br></div><div>-eric<br><br><div class="gmail_quote">On Thu, Mar 19, 2015 at 7:30 AM Rafael EspĂ­ndola <<a href="mailto:rafael.espindola@gmail.com">rafael.espindola@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">A version with explicit section names and more comments is attached.<br>
<br>
I think this addresses all concerns:<br>
<br>
* I can bootstrap with debug info on X86_64.<br>
* It can be used to build some objc to arm.<br>
* If a non-whitelisted section is created after dwarf, we assert.<br>
<br>
The white listed sections are the one that the assembler itself<br>
creates at the end of the file.<br>
<br>
OK?<br>
</blockquote></div></div></div>