OSDN Git Service

[yaml2obj] Add support for specifying raw section content.
[android-x86/external-llvm.git] / test / Object / yaml2obj-elf-section-basic.yaml
1 # RUN: yaml2obj -format=elf %s | llvm-readobj -sections -section-data - | FileCheck %s
2 !ELF
3 FileHeader:
4   Class: ELFCLASS64
5   Data: ELFDATA2LSB
6   Type: ET_REL
7   Machine: EM_X86_64
8 Sections:
9   - Name: .text
10     Type: SHT_PROGBITS
11     Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
12     Address: 0xDEADBEEF
13     Content: EBFE
14
15 # CHECK:        Section {
16 # CHECK:          Index: 0
17 # CHECK:          Type: SHT_NULL (0x0)
18 #
19 # CHECK:        Section {
20 # CHECK:          Name: .text
21 # CHECK:          Type: SHT_PROGBITS (0x1)
22 # CHECK-NEXT:     Flags [ (0x6)
23 # CHECK-NEXT:       SHF_ALLOC (0x2)
24 # CHECK-NEXT:       SHF_EXECINSTR (0x4)
25 # CHECK-NEXT:     ]
26 # CHECK-NEXT:     Address: 0xDEADBEEF
27 # CHECK:          Size: 2
28 # CHECK:          SectionData (
29 # CHECK-NEXT:       0000: EBFE
30 # CHECK-NEXT:     )