This is an archive of the discontinued LLVM Phabricator instance.

Fix issue #62423: relaxation region overflow
Needs ReviewPublic

Authored by korran on Apr 28 2023, 1:47 AM.

Details

Reviewers
MaskRay
jrtc27
Summary

lld incorrectly emits region overflow errors when linker relaxation
would prevent an overflow. This occurs because the region overflow
errors are emitted before any relaxation passes have been done. This
commit ignores region overflow errors until the final assignAddresses()
pass.

See more information on this bug at
https://github.com/llvm/llvm-project/issues/62423

Diff Detail

Event Timeline

korran created this revision.Apr 28 2023, 1:47 AM
Herald added a project: Restricted Project. · View Herald Transcript
korran requested review of this revision.Apr 28 2023, 1:47 AM
asb added a reviewer: jrtc27.May 3 2023, 8:20 AM
asb added a subscriber: jobnoorman.

Adding @jrtc27. Also CC @jobnoorman in case this same problem exists in the JITLink relaxation implementation.