[PATCH] D149432: Fix issue #62423: relaxation region overflow

Kor Nielsen via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 28 01:47:44 PDT 2023


korran created this revision.
Herald added subscribers: luke, frasercrmck, luismarques, apazos, sameer.abuasal, s.egerton, Jim, jocewei, PkmX, the_o, brucehoult, MartinMosbeck, rogfer01, edward-jones, zzheng, jrtc27, niosHD, sabuasal, simoncook, johnrusso, rbar, asb, arichardson, emaste.
Herald added a reviewer: MaskRay.
Herald added a project: All.
korran requested review of this revision.
Herald added subscribers: llvm-commits, pcwang-thead.
Herald added a project: LLVM.

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


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D149432

Files:
  lld/ELF/LinkerScript.cpp
  lld/ELF/LinkerScript.h
  lld/ELF/Writer.cpp
  lld/test/ELF/riscv-relax-call-region-overflow.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D149432.517837.patch
Type: text/x-patch
Size: 11828 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230428/9347a914/attachment.bin>


More information about the llvm-commits mailing list