llvm-project/bolt/lib/Rewrite
Maksim Panchenko 36cb736665 [BOLT] Ignore PC-relative relocations from data to data
BOLT expects PC-relative relocations in data sections to reference code
and the relocated data to form a jump table. However, there are cases
where PC-relative addressing is used for data-to-data references
(e.g. clang-15 can generate such code). BOLT should recognize and ignore
such relocations. Otherwise, they will be considered relocations not
claimed by any jump table and cause a failure in the strict mode.

Reviewed By: yota9, Amir

Differential Revision: https://reviews.llvm.org/D123650
2022-04-13 11:13:51 -07:00
..
BinaryPassManager.cpp [BOLT] CMOVConversion pass 2022-03-08 10:44:31 -08:00
BoltDiff.cpp [BOLTRewrite][NFC] Fix braces usages 2021-12-23 12:38:33 -08:00
CMakeLists.txt [BOLT][CMAKE] Use IN_LIST check 2022-01-14 15:47:14 -08:00
DWARFRewriter.cpp [BOLT][NFC] Remove unused function 2022-03-15 12:39:14 -07:00
ExecutableFileMemoryManager.cpp [BOLTRewrite][NFC] Fix braces usages 2021-12-23 12:38:33 -08:00
MachORewriteInstance.cpp [BOLT][NFC] Report errors from createBinaryContext and RewriteInstance ctor 2022-02-17 00:50:52 -08:00
RewriteInstance.cpp [BOLT] Ignore PC-relative relocations from data to data 2022-04-13 11:13:51 -07:00