1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 19:23:23 +01:00
llvm-mirror/lib/ExecutionEngine/RuntimeDyld
Nick Desaulniers 729fdacf8b [RuntimeDyld] fix too-small-bitmask error
Summary:
This was flagged in https://www.viva64.com/en/b/0629/ under "Snippet No.
33".

It seems that this statement is doing the standard bitwise trick for
adjusting a value to have a specific alignment.

The issue is that getStubAlignment() returns an unsigned, while DataSize
is declared a uint64_t. The right hand side of the expression is not
extended to 64b before bitwise negation, resulting in the top half of
the mask being 0s, which is not correct for realignment.

Reviewers: lhames, MaskRay

Reviewed By: MaskRay

Subscribers: RKSimon, MaskRay, hiraditya, llvm-commits, srhines

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D62227

llvm-svn: 362286
2019-06-01 04:51:26 +00:00
..
Targets [RuntimeDyld] Apply padding and alignment bumps to all sections with stubs, and 2019-05-30 19:59:20 +00:00
CMakeLists.txt
JITSymbol.cpp
LLVMBuild.txt
RTDyldMemoryManager.cpp Disable EHFrameSupport in JITLink/RuntimeDyld on AIX 2019-05-22 17:41:27 +00:00
RuntimeDyld.cpp [RuntimeDyld] fix too-small-bitmask error 2019-06-01 04:51:26 +00:00
RuntimeDyldChecker.cpp [JITLink] Add a test for zero-filled content. 2019-05-12 22:26:33 +00:00
RuntimeDyldCheckerImpl.h Simplify decoupling between RuntimeDyld/RuntimeDyldChecker, add 'got_addr' util. 2019-04-12 18:07:28 +00:00
RuntimeDyldCOFF.cpp
RuntimeDyldCOFF.h
RuntimeDyldELF.cpp [RuntimeDyld] Decouple RuntimeDyldChecker from RuntimeDyld. 2019-04-08 21:50:48 +00:00
RuntimeDyldELF.h Simplify decoupling between RuntimeDyld/RuntimeDyldChecker, add 'got_addr' util. 2019-04-12 18:07:28 +00:00
RuntimeDyldImpl.h Simplify decoupling between RuntimeDyld/RuntimeDyldChecker, add 'got_addr' util. 2019-04-12 18:07:28 +00:00
RuntimeDyldMachO.cpp
RuntimeDyldMachO.h