[llvm] [llvm-readobj] Support --symbol-table for COFF (PR #141552)

James Henderson via llvm-commits llvm-commits at lists.llvm.org
Tue May 27 00:03:24 PDT 2025


================
@@ -0,0 +1,60 @@
+# RUN: yaml2obj %s -o %t.obj
+# RUN: llvm-readobj --string-table %t.obj | FileCheck %s
+
+# CHECK: StringTable {
+# CHECK:   Length: 49
+# CHECK:   [     4] .debug_str
+# CHECK:   [     f] ?x@@3HA_test_test
+# CHECK:   [    21] _main_test_test
+# CHECK: }
+
+--- !COFF
----------------
jh7370 wrote:

Could you try simplifying this YAML a bit, by removing unnecessary fields/sections/symbols, please? In particular, you only need a couple of sections, just to populate the string table.

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


More information about the llvm-commits mailing list