[lld] [lld][ELF] Implement merged .debug_names section. (PR #86508)

via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 26 21:12:34 PDT 2024


================
@@ -0,0 +1,153 @@
+# REQUIRES: x86
+# RUN: llvm-mc -filetype=obj -triple=x86_64 %s -o %t1.o
+#
+# RUN: not ld.lld --debug-names %t1.o -o /dev/null 2>&1 | FileCheck %s
+#
+# CHECK: error: {{.*}}:(.debug_names): encountered unexpected end of section while reading entry
----------------
cmtice wrote:

I can successfully add "FileCheck -DFILE=%t1.o" or "FileCheck -DFILE=%t2.o to my tests.

I don't understand what you want me to do with [[FILE]]; could you be more explicit please?

I tried adding "rm -rf %t && split-file %s %t && cd %t" to some of my tests, but then  the tests fail with errors like: "split-file: error: /usr/local/google3/cmtice/LLD.llvm-project/lld/test/ELF/debug-names-parent-idx.s: no part separator was found".  I'm not sure what to do here?

https://github.com/llvm/llvm-project/pull/86508


More information about the llvm-commits mailing list