Home | History | Annotate | Download | only in llvm-objcopy
      1 # RUN: yaml2obj %s > %t
      2 # RUN: llvm-objcopy %t %t2
      3 # RUN: llvm-readobj -file-headers -sections %t2 | FileCheck %s
      4 
      5 !ELF
      6 FileHeader:
      7   Class:           ELFCLASS32
      8   Data:            ELFDATA2LSB
      9   Type:            ET_EXEC
     10   Machine:         EM_X86_64
     11 Sections:
     12   - Name:            .bss
     13     Type:            SHT_NOBITS
     14     Flags:           [ SHF_ALLOC ]
     15     AddressAlign:    0x0000000000000010
     16     Size:            64
     17   - Name:            .text
     18     Type:            SHT_PROGBITS
     19     Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
     20     AddressAlign:    0x0000000000000010
     21     Content:         "00000000"
     22 
     23 # CHECK: Class: 32-bit
     24 # CHECK: DataEncoding: LittleEndian
     25 
     26 # CHECK:      Name: .bss
     27 # CHECK:      Name: .text
     28 # CHECK:      Name: .shstrtab
     29