[PATCH] D80414: [lld-macho] Ensure reads from nlist_64 structs are aligned when necessary
Eli Friedman via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue May 26 11:58:28 PDT 2020
efriedma added a comment.
Alternatively, we have some integer wrappers in llvm/Support/Endian.h that deal with both endianness and alignment. For example, you could define nlist_64 like this:
struct nlist_64 {
support::ulittle32_t n_strx;
uint8_t n_type;
uint8_t n_sect;
support::ulittle16_t n_desc;
support::ulittle64_t n_value;
};
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D80414/new/
https://reviews.llvm.org/D80414
More information about the llvm-commits
mailing list