This is an archive of the discontinued LLVM Phabricator instance.

[llvm-objcopy][MachO] Support ARM64_RELOC_ADDEND
ClosedPublic

Authored by MaskRay on Jun 25 2021, 8:31 PM.

Details

Summary

An ARM64_RELOC_ADDEND relocation reuses the symbol field for the addend value.
We should pass through such relocations.

Diff Detail

Event Timeline

MaskRay created this revision.Jun 25 2021, 8:31 PM
MaskRay requested review of this revision.Jun 25 2021, 8:31 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 25 2021, 8:31 PM
alexander-shaposhnikov added inline comments.
llvm/tools/llvm-objcopy/MachO/Object.h
183

Would be good to expand this comment a little bit explaining the specifics of such relocations
(basically mention that the symbol field actually stores the addend value)

This revision is now accepted and ready to land.Jun 29 2021, 1:55 AM
MaskRay updated this revision to Diff 355306.Jun 29 2021, 11:23 AM
MaskRay marked an inline comment as done.

improve comment

This revision was landed with ongoing or failed builds.Jun 29 2021, 11:23 AM
This revision was automatically updated to reflect the committed changes.