[all-commits] [llvm/llvm-project] 7db0a6: [objcopy][COFF] Do not strip .rdata section with -...

Billy Laws via All-commits all-commits at lists.llvm.org
Sat Jan 4 13:55:34 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7db0a606a294bc788563b8363261efa0c13e3062
      https://github.com/llvm/llvm-project/commit/7db0a606a294bc788563b8363261efa0c13e3062
  Author: Billy Laws <blaws05 at gmail.com>
  Date:   2025-01-04 (Sat, 04 Jan 2025)

  Changed paths:
    M llvm/lib/ObjCopy/COFF/COFFObjcopy.cpp
    A llvm/test/tools/llvm-objcopy/COFF/Inputs/i386-debug-rdata.yaml
    A llvm/test/tools/llvm-objcopy/COFF/only-keep-debug-rdata.test

  Log Message:
  -----------
  [objcopy][COFF] Do not strip .rdata section with --only-keep-debug (#121653)

When not in MinGW mode, the PE debug directory is placed in .rdata by
the linker instead of .buildid. In addition to .buildid always
explicitly preserve the section containing the debug directory to avoid
causing errors later in patchDebugDirectory.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list