This is using the raw struct versions of the COFF data structures. This will not work on big endian machines. You need to use the ones defined in "llvm/Object/COFF.h". http://llvm-reviews.chandlerc.com/D892 BRANCH coff3 ARCANIST PROJECT lld