
This PR adds support for parsing the data symbols from the WebAssembly name section, which consists of a name and address range for the segments in the Wasm data section. Unlike other object file formats, Wasm has no symbols for referencing items within those segments (i.e. symbols the user has defined).
10 lines
510 B
Plaintext
10 lines
510 B
Plaintext
# RUN: yaml2obj %S/Inputs/simple.wasm.yaml -o %t.wasm
|
|
# RUN: %lldb %t.wasm -o 'image dump symtab'
|
|
|
|
# CHECK: Code 0x0000000000000002 0x0000000000000002 {{.*}} __wasm_call_ctors
|
|
# CHECK: Code 0x0000000000000005 0x0000000000000029 {{.*}} add
|
|
# CHECK: Code 0x000000000000002f 0x000000000000004c {{.*}} __original_main
|
|
# CHECK: Code 0x000000000000007c 0x0000000000000009 {{.*}} main
|
|
# CHECK: Data 0x000000000000022f 0x0000000000000041 {{.*}} .rodata
|
|
# CHECK: Data 0x0000000000000270 0x0000000000000000 {{.*}} .data
|