aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/IR/Module.cpp
diff options
context:
space:
mode:
authorAxel Y. Rivera <axel.y.rivera@intel.com>2021-05-21 23:31:03 +0300
committerMartin Storsjö <martin@martin.st>2021-05-21 23:45:55 +0300
commit4fb131b49795ea11f7f56af1f4896fb6996faf0f (patch)
treed65a5a464705d98b634f5b9623a2fc74692b24c9 /llvm/lib/IR/Module.cpp
parent7a29a1230148385e93493891cc7eb7f7f3b4a6cb (diff)
downloadllvm-4fb131b49795ea11f7f56af1f4896fb6996faf0f.zip
llvm-4fb131b49795ea11f7f56af1f4896fb6996faf0f.tar.gz
llvm-4fb131b49795ea11f7f56af1f4896fb6996faf0f.tar.bz2
[LLD][COFF] PR49068: Include the IMAGE_REL_BASED_HIGHLOW relocation base type when the machine is 64 bits and the relocation type is ADDR32
The COFF driver produces an ABSOLUTE relocation base for an ADDR32 relocation type and the system is 64 bits (machine=AMD64). The relocation information won't be added in the output and could produce an incorrect address access during run-time. This change set checks if the relocation type is IMAGE_REL_AMD64_ADDR32 and if so, adds the relocated symbol as IMAGE_REL_BASED_HIGHLOW base. Differential Revision: https://reviews.llvm.org/D96619
Diffstat (limited to 'llvm/lib/IR/Module.cpp')
0 files changed, 0 insertions, 0 deletions