[all-commits] [llvm/llvm-project] b14e9e: Reland D76675 [llvm-objcopy] Match GNU behaviour r...

Fangrui Song via All-commits all-commits at lists.llvm.org
Mon Apr 20 21:19:42 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: b14e9e3c0cab6fb4c53e5814b6a2454d4688a49e
      https://github.com/llvm/llvm-project/commit/b14e9e3c0cab6fb4c53e5814b6a2454d4688a49e
  Author: Fangrui Song <maskray at google.com>
  Date:   2020-04-20 (Mon, 20 Apr 2020)

  Changed paths:
    M llvm/test/tools/llvm-objcopy/ELF/keep-file-symbols.test
    M llvm/test/tools/llvm-objcopy/ELF/strip-debug.test
    M llvm/tools/llvm-objcopy/COFF/COFFObjcopy.cpp
    M llvm/tools/llvm-objcopy/CopyConfig.cpp
    M llvm/tools/llvm-objcopy/ELF/ELFObjcopy.cpp
    M llvm/tools/llvm-objcopy/MachO/MachOObjcopy.cpp

  Log Message:
  -----------
  Reland D76675 [llvm-objcopy] Match GNU behaviour regarding file symbols

Don't error on Config.KeepFileSymbols for COFF and Mach-O.

Original description:

GNU objcopy removes STT_FILE symbols for strip-debug operations, and
keeps them for --discard-all operation. Match their behaviour for
llvm-objcopy.

Bug: https://github.com/android/ndk/issues/1212

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




More information about the All-commits mailing list