RewriteInstance's reloc handling uses dyncast to select between the 4 ELF formats. But everywhere else RewriteInstance only handles LE64 ELF, so this dyncasting is unnecessary. Just cast to the expected ELF type and be done with it.
Details
Details
Summary
Diff Detail
Diff Detail
Event Timeline
This revision is now accepted and ready to land.Apr 21 2023, 11:59 AM
Closed by commit rG5b9f0309d653: [BOLT] Remove unsupported ELF type reloc handling (authored by urnathan). · Explain WhyApr 23 2023, 10:09 AM
This revision was automatically updated to reflect the committed changes.