[all-commits] [llvm/llvm-project] 16ebb7: [llvm-objcopy] [COFF] Do not patch debug entries i...

pirama-arumuga-nainar via All-commits all-commits at lists.llvm.org
Fri Aug 6 09:23:41 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 16ebb7ab5c462518388527b6ebee2f0e1080b777
      https://github.com/llvm/llvm-project/commit/16ebb7ab5c462518388527b6ebee2f0e1080b777
  Author: Pirama Arumuga Nainar <pirama at google.com>
  Date:   2021-08-06 (Fri, 06 Aug 2021)

  Changed paths:
    M llvm/test/tools/llvm-objcopy/COFF/debug-dir-unmapped.test
    A llvm/test/tools/llvm-objcopy/COFF/debug-entry-no-payload.test
    M llvm/tools/llvm-objcopy/COFF/Writer.cpp

  Log Message:
  -----------
  [llvm-objcopy] [COFF] Do not patch debug entries if PointerToRawData is zero

Fix an edge case missed by https://reviews.llvm.org/D78921.  For e.g.,
the Repro debug entry (generated with the /Brepro linker flag) does not
have a debug-directory payload.  Do not attempt to patch Debug entries
without a payload.

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




More information about the All-commits mailing list