[lld] r274729 - Fix endianness issue.

Rui Ueyama via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 7 09:50:41 PDT 2016

On Thu, Jul 7, 2016 at 1:33 AM, George Rimar <grimar at accesssoftek.com>

> >template <class ELFT> void InputSectionBase<ELFT>::uncompress() {
> >-  typedef typename std::conditional<ELFT::Is64Bits, Elf64_Chdr,
> >-                                    Elf32_Chdr>::type Elf_Chdr;
> So looks it could be just that. Remove of this typedef is enough generally
> to fix the issue.
> New code looks better though.

I'm not sure if I understand what you meant, but you have to read
Elf_Chdr::ch_size in target's byte order.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160707/92563f47/attachment.html>

More information about the llvm-commits mailing list