[all-commits] [llvm/llvm-project] 518b7f: [LLD] [COFF] Add an assert regarding the RVA of ex...

Martin Storsjö via All-commits all-commits at lists.llvm.org
Tue May 11 03:09:44 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 518b7f913526b5d002751edfa88869d10f5412fc
      https://github.com/llvm/llvm-project/commit/518b7f913526b5d002751edfa88869d10f5412fc
  Author: Martin Storsjö <martin at martin.st>
  Date:   2021-05-11 (Tue, 11 May 2021)

  Changed paths:
    M lld/COFF/DLL.cpp

  Log Message:
  -----------
  [LLD] [COFF] Add an assert regarding the RVA of exported symbols. NFC.

As this isn't handled as a regular relocation, the normal handling of
maybeReportRelocationToDiscarded in Chunks.cpp doesn't apply here.

This would have caught the issue fixed by
82de4e075339f5ad8d68cfe31eb45b771d4750ae.

Differential Revision: https://reviews.llvm.org/D102115




More information about the All-commits mailing list