30 lines · yaml
1## Ensures that implicitly added sections can be ordered within Sections.2 3# RUN: yaml2obj %s -o %t4# RUN: llvm-readobj --sections %t | FileCheck %s5 6!ELF7FileHeader:8 Class: ELFCLASS649 Data: ELFDATA2LSB10 Type: ET_EXEC11Sections:12 - Name: .text13 Type: SHT_PROGBITS14 Flags: [ SHF_ALLOC, SHF_EXECINSTR ]15 - Name: .symtab16 Type: SHT_SYMTAB17 - Name: .data18 Type: SHT_PROGBITS19 Flags: [ SHF_ALLOC, SHF_WRITE ]20 - Name: .shstrtab21 Type: SHT_STRTAB22 - Name: .strtab23 Type: SHT_STRTAB24 25# CHECK: Name: .text26# CHECK: Name: .symtab27# CHECK: Name: .data28# CHECK: Name: .shstrtab29# CHECK: Name: .strtab30