diff options
| author | Martin Storsjo <martin@martin.st> | 2017-07-20 05:49:54 +0000 |
|---|---|---|
| committer | Martin Storsjo <martin@martin.st> | 2017-07-20 05:49:54 +0000 |
| commit | b3c97b96237cbd31e0338231f33e652d6eea38df (patch) | |
| tree | 79b17645934d5279c7072d9900f204676677c5e1 /clang/lib/Basic/VirtualFileSystem.cpp | |
| parent | 1c8af27ae1d85da8efcb62652e28d50e5d2661ae (diff) | |
| download | llvm-b3c97b96237cbd31e0338231f33e652d6eea38df.zip llvm-b3c97b96237cbd31e0338231f33e652d6eea38df.tar.gz llvm-b3c97b96237cbd31e0338231f33e652d6eea38df.tar.bz2 | |
[COFF] Align import address chunks to the pointer size
This fixes cases on ARM64 when importing from more than one DLL,
in case the imports from the first DLL ended up unaligned.
When fixing up a IMAGE_REL_ARM64_PAGEOFFSET_12L, which shifts the
offset by the load/store size, check that the shift doesn't discard
any bits. (This would also detect if the import address chunks were
unaligned.)
Differential revision: https://reviews.llvm.org/D35640
llvm-svn: 308585
Diffstat (limited to 'clang/lib/Basic/VirtualFileSystem.cpp')
0 files changed, 0 insertions, 0 deletions
