[PATCH] D120379: [BOLT] Support PC-relative relocations with addends
Maksim Panchenko via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 22 19:11:45 PST 2022
maksfb created this revision.
maksfb added reviewers: yota9, rafauler, Amir, ayermolo.
maksfb requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
PC-relative memory operand could reference a different object from
the one located at the target address, e.g. when a negative offset
is used. Check relocations for the real referenced object.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D120379
Files:
bolt/include/bolt/Core/BinaryFunction.h
bolt/include/bolt/Core/Relocation.h
bolt/lib/Core/BinaryFunction.cpp
bolt/lib/Core/Relocation.cpp
bolt/lib/Rewrite/RewriteInstance.cpp
bolt/test/X86/fptr-addend-pcrel.s
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D120379.410690.patch
Type: text/x-patch
Size: 11087 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220223/4e89cdd7/attachment.bin>
More information about the llvm-commits
mailing list