Fix misaligned access in MachO object file reader: despite containing an
authorRichard Smith <richard-llvm@metafoo.co.uk>
Tue, 21 Aug 2012 20:52:03 +0000 (20:52 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Tue, 21 Aug 2012 20:52:03 +0000 (20:52 +0000)
commit97defc37d66d678bbca4a23d522f0942f7431db9
tree56cc56631ccfee5f1ca3132036c8d101b75899d7
parentfca01b5e2b509f2e9aeeb1cc51aea89c3722cb2e
Fix misaligned access in MachO object file reader: despite containing an
int64_t, Symbol64TableEntry is actually only stored with 4-byte alignment
within the file.

The usage of #pragma pack here is copied from the corresponding code in
Support/Endian.h, so shouldn't introduce any new portability problems.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@162312 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Object/MachOFormat.h