<div dir="ltr"><br><div class="gmail_extra">Comments?<br><br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
- if (!TypeName.empty()) {<br>
+ if (TypeName.empty()) {<br></blockquote><div><br></div><div style>Technically don't need the braces here, but honestly in this case I like them :)</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
+ if (SectionName.startswith(".note"))<br>
+ Type = ELF::SHT_NOTE;<br>
+ else if (SectionName == ".init_array")<br>
+ Type = ELF::SHT_INIT_ARRAY;<br>
+ else if (SectionName == ".fini_array")<br>
+ Type = ELF::SHT_FINI_ARRAY;<br>
+ else if (SectionName == ".preinit_array")<br>
+ Type = ELF::SHT_PREINIT_ARRAY;<br>
+ } else {<br>
if (TypeName == "init_array")<br>
Type = ELF::SHT_INIT_ARRAY;<br>
else if (TypeName == "fini_array")<br></blockquote><div><br></div><div style>-eric </div></div></div></div>