[lld] [llvm] [llvm-objcopy][WebAssembly] Allow --strip-debug to operate on relocatable files. (PR #102978)
Derek Schuff via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 12 16:31:22 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
----------------
dschuff wrote:
Is it the intention that this test will pass with the updated behavior to actually rewrite the linking and relocation sections? If not, I think we should also explicitly test for the behavior that this test actually adds, i.e. check for the zero-sized renamed sections.
https://github.com/llvm/llvm-project/pull/102978
More information about the llvm-commits
mailing list