<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Thu, Jul 7, 2016 at 1:33 AM, George Rimar <span dir="ltr"><<a href="mailto:grimar@accesssoftek.com" target="_blank">grimar@accesssoftek.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">>template <class ELFT> void InputSectionBase<ELFT>::uncompress() {<br>
>-  typedef typename std::conditional<ELFT::Is64Bits, Elf64_Chdr,<br>
>-                                    Elf32_Chdr>::type Elf_Chdr;<br>
<br>
</span>So looks it could be just that. Remove of this typedef is enough generally to fix the issue.<br>
New code looks better though.<br></blockquote><div><br></div><div>I'm not sure if I understand what you meant, but you have to read Elf_Chdr::ch_size in target's byte order. </div></div></div></div>