diff options
author | Sam Clegg <sbc@chromium.org> | 2017-04-14 19:50:44 +0000 |
---|---|---|
committer | Sam Clegg <sbc@chromium.org> | 2017-04-14 19:50:44 +0000 |
commit | 135a4b8ea1cdba8b7ee28782be21e7c172700d43 (patch) | |
tree | 3c10e7340111cde2533e72de036d742150904174 /llvm/test/tools/llvm-readobj/sections.test | |
parent | 7cfe41659c15c911129e2229b8ab460886886bf0 (diff) | |
download | bcm5719-llvm-135a4b8ea1cdba8b7ee28782be21e7c172700d43.tar.gz bcm5719-llvm-135a4b8ea1cdba8b7ee28782be21e7c172700d43.zip |
[WebAssembly] Improve readobj and nm support for wasm
Now that the libObect support for wasm is better we can
have readobj and nm produce more useful output too.
Differential Revision: https://reviews.llvm.org/D31514
llvm-svn: 300365
Diffstat (limited to 'llvm/test/tools/llvm-readobj/sections.test')
-rw-r--r-- | llvm/test/tools/llvm-readobj/sections.test | 95 |
1 files changed, 53 insertions, 42 deletions
diff --git a/llvm/test/tools/llvm-readobj/sections.test b/llvm/test/tools/llvm-readobj/sections.test index 53705a7a696..312c47fe4c8 100644 --- a/llvm/test/tools/llvm-readobj/sections.test +++ b/llvm/test/tools/llvm-readobj/sections.test @@ -494,45 +494,56 @@ MACHO-ARM-NEXT: } MACHO-ARM-NEXT:] WASM: Sections [ -WASM-NEXT: Section { -WASM-NEXT: Type: TYPE (0x1) -WASM-NEXT: Size: 15 -WASM-NEXT: Offset: 8 -WASM-NEXT: } -WASM-NEXT: Section { -WASM-NEXT: Type: IMPORT (0x2) -WASM-NEXT: Size: 11 -WASM-NEXT: Offset: 25 -WASM-NEXT: } -WASM-NEXT: Section { -WASM-NEXT: Type: FUNCTION (0x3) -WASM-NEXT: Size: 3 -WASM-NEXT: Offset: 38 -WASM-NEXT: } -WASM-NEXT: Section { -WASM-NEXT: Type: TABLE (0x4) -WASM-NEXT: Size: 5 -WASM-NEXT: Offset: 43 -WASM-NEXT: } -WASM-NEXT: Section { -WASM-NEXT: Type: EXPORT (0x7) -WASM-NEXT: Size: 14 -WASM-NEXT: Offset: 50 -WASM-NEXT: } -WASM-NEXT: Section { -WASM-NEXT: Type: ELEM (0x9) -WASM-NEXT: Size: 7 -WASM-NEXT: Offset: 66 -WASM-NEXT: } -WASM-NEXT: Section { -WASM-NEXT: Type: CODE (0xA) -WASM-NEXT: Size: 42 -WASM-NEXT: Offset: 75 -WASM-NEXT: } -WASM-NEXT: Section { -WASM-NEXT: Type: CUSTOM (0x0) -WASM-NEXT: Size: 60 -WASM-NEXT: Offset: 119 -WASM-NEXT: Name: name -WASM-NEXT: } -WASM-NEXT: ] +WASM-NEXT: Section { +WASM-NEXT: Type: TYPE (0x1) +WASM-NEXT: Size: 5 +WASM-NEXT: Offset: 8 +WASM-NEXT: } +WASM-NEXT: Section { +WASM-NEXT: Type: IMPORT (0x2) +WASM-NEXT: Size: 23 +WASM-NEXT: Offset: 19 +WASM-NEXT: } +WASM-NEXT: Section { +WASM-NEXT: Type: FUNCTION (0x3) +WASM-NEXT: Size: 2 +WASM-NEXT: Offset: 48 +WASM-NEXT: } +WASM-NEXT: Section { +WASM-NEXT: Type: TABLE (0x4) +WASM-NEXT: Size: 4 +WASM-NEXT: Offset: 56 +WASM-NEXT: } +WASM-NEXT: Section { +WASM-NEXT: Type: MEMORY (0x5) +WASM-NEXT: Size: 3 +WASM-NEXT: Offset: 66 +WASM-NEXT: } +WASM-NEXT: Section { +WASM-NEXT: Type: EXPORT (0x7) +WASM-NEXT: Size: 7 +WASM-NEXT: Offset: 75 +WASM-NEXT: } +WASM-NEXT: Section { +WASM-NEXT: Type: ELEM (0x9) +WASM-NEXT: Size: 7 +WASM-NEXT: Offset: 88 +WASM-NEXT: } +WASM-NEXT: Section { +WASM-NEXT: Type: CODE (0xA) +WASM-NEXT: Size: 61 +WASM-NEXT: Offset: 101 +WASM-NEXT: } +WASM-NEXT: Section { +WASM-NEXT: Type: CUSTOM (0x0) +WASM-NEXT: Size: 17 +WASM-NEXT: Offset: 168 +WASM-NEXT: Name: name +WASM-NEXT: } +WASM-NEXT: Section { +WASM-NEXT: Type: CUSTOM (0x0) +WASM-NEXT: Size: 24 +WASM-NEXT: Offset: 191 +WASM-NEXT: Name: reloc.CODE +WASM-NEXT: } +WASM-NEXT:] |