1 # RUN: not yaml2obj -o %t %s 2>&1 | FileCheck %s 2 3 !ELF 4 FileHeader: 5 Class: ELFCLASS64 6 Data: ELFDATA2LSB 7 Type: ET_REL 8 Machine: EM_X86_64 9 10 Sections: 11 - Name: .text 12 Type: SHT_PROGBITS 13 Flags: [ SHF_ALLOC, SHF_EXECINSTR ] 14 Content: EBFE 15 AddressAlign: 2 16 17 - Name: .data 18 Type: SHT_PROGBITS 19 Flags: [ SHF_ALLOC ] 20 Content: 0000000000000000 21 Size: 2 22 23 # CHECK: YAML:17:5: error: Section size must be greater or equal to the content size 24 # CHECK-NEXT: - Name: .data 25 # CHECK-NEXT: ^ 26 # CHECK-NEXT: yaml2obj: Failed to parse YAML file! 27