This is an archive of the discontinued LLVM Phabricator instance.

[BOLT] Testcase to repro dyn reloc bug
ClosedPublic

Authored by rafauler on May 18 2022, 5:56 PM.

Details

Summary

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.

Diff Detail

Event Timeline

rafauler created this revision.May 18 2022, 5:56 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 18 2022, 5:56 PM
rafauler requested review of this revision.May 18 2022, 5:56 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 18 2022, 5:56 PM
rafauler updated this revision to Diff 430544.May 18 2022, 5:59 PM

Forgot to add the XFAIL. Include it.

rafauler updated this revision to Diff 430545.May 18 2022, 6:04 PM

Remove unnecessary linker flags.

Amir accepted this revision.May 19 2022, 1:04 PM
This revision is now accepted and ready to land.May 19 2022, 1:04 PM
rafauler updated this revision to Diff 431066.May 20 2022, 2:49 PM

Remove linker script to simplify test. Update comments.

This revision was automatically updated to reflect the committed changes.