[lld] [llvm] [llvm-objcopy][WebAssembly] Allow --strip-debug to operate on relocatable files. (PR #102978)
Sam Clegg via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 12 16:56:29 PDT 2024
================
@@ -1,7 +1,39 @@
-## Test that debug sections (but not linking or names) are stripped with --strip-debug
# RUN: yaml2obj %s -o %t
-# RUN: llvm-strip --strip-debug %t
-# RUN: obj2yaml %t | FileCheck --implicit-check-not=.debug %s
+# RUN: cp %t %t3
+# RUN: llvm-objcopy --strip-debug %t %t2
----------------
sbc100 wrote:
Good point.
This test code is copied directly from `llvm/test/tools/llvm-objcopy/ELF/strip-debug.test`, BTW, I should have mentioned that.
I will see if I can update to verify explicitly the new behaviour.
https://github.com/llvm/llvm-project/pull/102978
More information about the llvm-commits
mailing list