36 lines · plain
1# RUN: yaml2obj %s -o %t2# RUN: echo 0000 > %t.sec3# RUN: llvm-objcopy -R .test2 --add-section=.test2=%t.sec %t %t24# RUN: llvm-readobj --file-headers --sections --section-data %t2 | FileCheck %s5 6!ELF7FileHeader:8 Class: ELFCLASS649 Data: ELFDATA2LSB10 Type: ET_REL11 Machine: EM_X86_6412Sections:13 - Name: .test114 Type: SHT_PROGBITS15 Flags: [ SHF_ALLOC ]16 Content: "c3c3c3c3"17 - Name: .test218 Type: SHT_PROGBITS19 Flags: [ SHF_ALLOC ]20 Content: "DEADBEEF"21 - Name: .test322 Type: SHT_PROGBITS23 Flags: [ SHF_ALLOC ]24 Content: "32323232"25 26# CHECK: SectionHeaderCount: 627 28# CHECK: Name: .test129# CHECK: Name: .test330# CHECK: Name: .strtab31# CHECK: Name: .shstrtab32# CHECK: Name: .test233# CHECK: SectionData (34# CHECK-NEXT: 0000: 3030303035# CHECK-NEXT: )36