[llvm] SymbolizableOjbectFile: Convert Wasm file offset to section offset for DWARF (PR #191068)

James Henderson via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 14 01:46:58 PDT 2026


================
@@ -0,0 +1,74 @@
+# REQUIRES: webassembly-registered-target, lld
+# RUN: llvm-mc -triple=wasm32-unknown-unknown -filetype=obj %s -o %t.o -g
+# RUN: wasm-ld %t.o -o %t.wasm --no-entry --export=foo --export=bar
----------------
jh7370 wrote:

What @MaskRay said.

If testing on a fully-linked generated-at-runtime object is necessary, testing should be in `cross-project-tests`, because llvm-objdump testing must not rely on elemets outside the core LLVM project. Alternatively, you could craft the input using some combination of assembly/llvm-objcopy/yaml2obj, assuming it's possible to do so.

For clarity, I'm only talking about the new test case. The existing test case that doesn't use lld can remain where it is, with the lld requirement removed.

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


More information about the llvm-commits mailing list