You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
51 lines
1.3 KiB
51 lines
1.3 KiB
4 months ago
|
## Check how we print sections.
|
||
|
|
||
|
# RUN: llvm-readobj --sections %p/Inputs/trivial.obj.wasm | FileCheck %s
|
||
|
|
||
|
# CHECK: Sections [
|
||
|
# CHECK-NEXT: Section {
|
||
|
# CHECK-NEXT: Type: TYPE (0x1)
|
||
|
# CHECK-NEXT: Size: 17
|
||
|
# CHECK-NEXT: Offset: 8
|
||
|
# CHECK-NEXT: }
|
||
|
# CHECK-NEXT: Section {
|
||
|
# CHECK-NEXT: Type: IMPORT (0x2)
|
||
|
# CHECK-NEXT: Size: 93
|
||
|
# CHECK-NEXT: Offset: 31
|
||
|
# CHECK-NEXT: }
|
||
|
# CHECK-NEXT: Section {
|
||
|
# CHECK-NEXT: Type: FUNCTION (0x3)
|
||
|
# CHECK-NEXT: Size: 3
|
||
|
# CHECK-NEXT: Offset: 130
|
||
|
# CHECK-NEXT: }
|
||
|
# CHECK-NEXT: Section {
|
||
|
# CHECK-NEXT: Type: CODE (0xA)
|
||
|
# CHECK-NEXT: Size: 36
|
||
|
# CHECK-NEXT: Offset: 139
|
||
|
# CHECK-NEXT: }
|
||
|
# CHECK-NEXT: Section {
|
||
|
# CHECK-NEXT: Type: DATA (0xB)
|
||
|
# CHECK-NEXT: Size: 19
|
||
|
# CHECK-NEXT: Offset: 181
|
||
|
# CHECK-NEXT: Segments [
|
||
|
# CHECK-NEXT: Segment {
|
||
|
# CHECK-NEXT: Name: .rodata..L.str
|
||
|
# CHECK-NEXT: Size: 13
|
||
|
# CHECK-NEXT: Offset: 0
|
||
|
# CHECK-NEXT: }
|
||
|
# CHECK-NEXT: ]
|
||
|
# CHECK-NEXT: }
|
||
|
# CHECK-NEXT: Section {
|
||
|
# CHECK-NEXT: Type: CUSTOM (0x0)
|
||
|
# CHECK-NEXT: Size: 89
|
||
|
# CHECK-NEXT: Offset: 206
|
||
|
# CHECK-NEXT: Name: linking
|
||
|
# CHECK-NEXT: }
|
||
|
# CHECK-NEXT: Section {
|
||
|
# CHECK-NEXT: Type: CUSTOM (0x0)
|
||
|
# CHECK-NEXT: Size: 15
|
||
|
# CHECK-NEXT: Offset: 309
|
||
|
# CHECK-NEXT: Name: reloc.CODE
|
||
|
# CHECK-NEXT: }
|
||
|
# CHECK-NEXT: ]
|