[PATCH] D123650: [BOLT] Ignore PC-relative relocations from data to data
Maksim Panchenko via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 12 18:41:53 PDT 2022
maksfb created this revision.
maksfb added reviewers: yota9, Amir, ayermolo, rafauler.
Herald added a project: All.
maksfb requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
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.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D123650
Files:
bolt/lib/Rewrite/RewriteInstance.cpp
bolt/test/X86/data-to-data-pcrel.s
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D123650.422378.patch
Type: text/x-patch
Size: 6085 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220413/0b173a6d/attachment.bin>
More information about the llvm-commits
mailing list