llvm-project/llvm/lib/ExecutionEngine/RuntimeDyld
Nick Desaulniers b380846a12 [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 Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
LLVMBuild.txt Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
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
RuntimeDyldCOFF.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
RuntimeDyldCOFF.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +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
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 Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
RuntimeDyldMachO.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00