[all-commits] [llvm/llvm-project] 0c37a9: [LLD][COFF] Reset outputSections for successive runs

Bas Zalmstra via All-commits all-commits at lists.llvm.org
Mon Aug 24 10:54:03 PDT 2020


  Branch: refs/heads/release/11.x
  Home:   https://github.com/llvm/llvm-project
  Commit: 0c37a9165611880b99b1f9632179864ecb3f2e13
      https://github.com/llvm/llvm-project/commit/0c37a9165611880b99b1f9632179864ecb3f2e13
  Author: Bas Zalmstra <zalmstra.bas at gmail.com>
  Date:   2020-08-24 (Mon, 24 Aug 2020)

  Changed paths:
    M lld/COFF/Writer.cpp

  Log Message:
  -----------
  [LLD][COFF] Reset outputSections for successive runs

The global variable outputSections in the COFF writer was not
cleared between runs which caused successive calls to lld::coff::link
to generate invalid binaries. These binaries when loaded would result
in "invalid win32 applications" and/or "bad image" errors.

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

(cherry picked from commit 54f5a4ea4c859cf7f34f0d4955abc3a2f44bd0dc)




More information about the All-commits mailing list