This is an archive of the discontinued LLVM Phabricator instance.

ELF: AArch64: Fix errata patch address calculation.
ClosedPublic

Authored by pcc on Dec 14 2018, 8:38 PM.

Details

Summary

The code here wants the output section offset of the instruction
requiring the errata patch, not the virtual address. Without this
change we can end up placing a patch out of range if the virtual
address of the code section is large enough.

Diff Detail

Repository
rL LLVM

Event Timeline

pcc created this revision.Dec 14 2018, 8:38 PM
ruiu accepted this revision.Dec 15 2018, 6:44 AM

LGTM

This revision is now accepted and ready to land.Dec 15 2018, 6:44 AM
This revision was automatically updated to reflect the committed changes.