diff options
Diffstat (limited to 'test/dump/relocations.txt')
-rw-r--r-- | test/dump/relocations.txt | 46 |
1 files changed, 42 insertions, 4 deletions
diff --git a/test/dump/relocations.txt b/test/dump/relocations.txt index d856413a..1fb5e708 100644 --- a/test/dump/relocations.txt +++ b/test/dump/relocations.txt @@ -1,6 +1,6 @@ ;;; TOOL: run-objdump ;;; ARGS0: -r -;;; ARGS1: --headers +;;; ARGS1: --headers --details (module (type $t (func (param i32))) (import "__extern" "foo" (func (param i32) (result i32))) @@ -29,14 +29,52 @@ Sections: Export start=0x00000050 end=0x00000055 (size=0x00000005) count: 1 Elem start=0x00000057 end=0x0000005e (size=0x00000007) count: 1 Code start=0x00000060 end=0x00000082 (size=0x00000022) count: 1 - Custom start=0x00000084 end=0x000000a1 (size=0x0000001d) "linking" - Custom start=0x000000a3 end=0x000000bc (size=0x00000019) "reloc.Code" + Custom start=0x00000084 end=0x000000a5 (size=0x00000021) "linking" + Custom start=0x000000a7 end=0x000000c0 (size=0x00000019) "reloc.Code" + +Section Details: + +Type[3]: + - type[0] (i32) -> nil + - type[1] (i32) -> i32 + - type[2] (i32, i32) -> i32 +Import[2]: + - func[0] sig=1 <__extern.foo> <- __extern.foo + - func[1] sig=2 <__extern.bar> <- __extern.bar +Function[1]: + - func[2] sig=1 <f> +Table[1]: + - table[0] type=funcref initial=1 max=1 +Global[1]: + - global[0] i32 mutable=0 <g> - init i32=0 +Export[1]: + - func[2] <f> -> "f" +Elem[1]: + - segment[0] flags=0 table=0 count=1 - init i32=0 + - elem[0] = func[1] <__extern.bar> +Code[1]: + - func[2] size=32 <f> +Custom: + - name: "linking" + - symbol table [count=5] + - 0: F <__extern.foo> func=0 undefined binding=global vis=default + - 1: F <__extern.bar> func=1 undefined binding=global vis=default + - 2: F <f> func=2 exported no_strip binding=global vis=hidden + - 3: T <> table=0 binding=local vis=hidden + - 4: G <g> global=0 binding=global vis=default +Custom: + - name: "reloc.Code" + - relocations for section: 7 (Code) [4] + - R_WASM_GLOBAL_INDEX_LEB offset=0x000004(file=0x000064) symbol=4 <g> + - R_WASM_FUNCTION_INDEX_LEB offset=0x00000a(file=0x00006a) symbol=2 <f> + - R_WASM_FUNCTION_INDEX_LEB offset=0x000010(file=0x000070) symbol=0 <__extern.foo> + - R_WASM_TYPE_INDEX_LEB offset=0x00001b(file=0x00007b) type=2 Code Disassembly: 000062 func[2] <f>: 000063: 23 80 80 80 80 00 | global.get 0 <g> - 000064: R_WASM_GLOBAL_INDEX_LEB 3 <g> + 000064: R_WASM_GLOBAL_INDEX_LEB 4 <g> 000069: 10 82 80 80 80 00 | call 2 <f> 00006a: R_WASM_FUNCTION_INDEX_LEB 2 <f> 00006f: 10 80 80 80 80 00 | call 0 <__extern.foo> |