[PATCH] D125941: [BOLT] Testcase to repro dyn reloc bug

Rafael Auler via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed May 18 17:56:37 PDT 2022


rafauler created this revision.
rafauler added reviewers: yota9, maksfb, Amir, ayermolo.
Herald added a project: All.
rafauler requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Add a new testcase that shows a bug in BOLT when writing out
dynamic relocations. This is currently marked as XFAIL as we work on
solving it. This bug happens when the current strategy fails to
recognize that the original dynamic relocation in the input should
reference the original .bolt.org.rodata section instead of the new one
.rodata created by BOLT after moving jump tables. This bug started
happening after 729d29e167a5 <https://reviews.llvm.org/rG729d29e167a553ee1190c310b6a510db8d8731ac>.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D125941

Files:
  bolt/test/X86/Inputs/define_bar.s
  bolt/test/X86/dynrelocs.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D125941.430542.patch
Type: text/x-patch
Size: 4151 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220519/34093c7d/attachment.bin>


More information about the llvm-commits mailing list