diff options
Diffstat (limited to 'test/Object/yaml2obj-elf-section-basic.yaml')
-rw-r--r-- | test/Object/yaml2obj-elf-section-basic.yaml | 34 |
1 files changed, 31 insertions, 3 deletions
diff --git a/test/Object/yaml2obj-elf-section-basic.yaml b/test/Object/yaml2obj-elf-section-basic.yaml index c1f6935..56a3fd6 100644 --- a/test/Object/yaml2obj-elf-section-basic.yaml +++ b/test/Object/yaml2obj-elf-section-basic.yaml @@ -1,4 +1,7 @@ # RUN: yaml2obj -format=elf %s | llvm-readobj -sections -section-data - | FileCheck %s +# RUN: yaml2obj -format=elf -o %t %s +# RUN: llvm-readobj -sections -section-data %t | FileCheck %s + !ELF FileHeader: Class: ELFCLASS64 @@ -14,6 +17,14 @@ Sections: Content: EBFE AddressAlign: 2 + - Name: .data + Type: SHT_PROGBITS + Flags: [ SHF_ALLOC ] + Address: 0xCAFECAFE + Content: FEBF + Size: 8 + AddressAlign: 2 + # CHECK: Section { # CHECK: Index: 0 # CHECK: Type: SHT_NULL (0x0) @@ -35,14 +46,31 @@ Sections: # CHECK-NEXT: ) # # CHECK: Section { -# CHECK: Name: .symtab (7) +# CHECK: Name: .data +# CHECK-NEXT: Type: SHT_PROGBITS (0x1) +# CHECK-NEXT: Flags [ (0x2) +# CHECK-NEXT: SHF_ALLOC (0x2) +# CHECK-NEXT: ] +# CHECK-NEXT: Address: 0xCAFECAFE +# CHECK-NEXT: Offset: 0x1D0 +# CHECK-NEXT: Size: 8 +# CHECK-NEXT: Link: 0 +# CHECK-NEXT: Info: 0 +# CHECK-NEXT: AddressAlignment: 2 +# CHECK-NEXT: EntrySize: 0 +# CHECK-NEXT: SectionData ( +# CHECK-NEXT: 0000: FEBF0000 00000000 |........| +# CHECK-NEXT: ) +# +# CHECK: Section { +# CHECK: Name: .symtab (25) # CHECK: Type: SHT_SYMTAB (0x2) # CHECK: } # CHECK: Section { -# CHECK: Name: .strtab (15) +# CHECK: Name: .strtab (17) # CHECK: Type: SHT_STRTAB (0x3) # CHECK: } # CHECK: Section { -# CHECK: Name: .shstrtab (23) +# CHECK: Name: .shstrtab (7) # CHECK: Type: SHT_STRTAB (0x3) # CHECK: } |