1# RUN: yaml2obj %s -o %t 2# RUN: llvm-objcopy --prefix-alloc-sections=.prefix %t %t2 3# RUN: llvm-readobj --sections %t2 | FileCheck %s 4 5!ELF 6FileHeader: 7 Class: ELFCLASS64 8 Data: ELFDATA2LSB 9 Type: ET_REL 10 Machine: EM_X86_64 11Sections: 12 - Name: .foo 13 Type: SHT_PROGBITS 14 Flags: [ ] 15 - Name: .prefix.already_prefixed 16 Type: SHT_PROGBITS 17 Flags: [ SHF_ALLOC ] 18 - Name: .text 19 Type: SHT_PROGBITS 20 Flags: [ SHF_ALLOC ] 21 - Name: .rel.text 22 Type: SHT_REL 23 Info: .text 24 - Name: .rela.data 25 Type: SHT_RELA 26 Info: .data 27 - Name: .data 28 Type: SHT_PROGBITS 29 Flags: [ SHF_ALLOC ] 30 31# CHECK: Name: .foo 32# CHECK: Name: .prefix.prefix.already_prefixed 33# CHECK: Name: .prefix.text 34# CHECK: Name: .rel.prefix.text 35# CHECK: Name: .rela.prefix.data 36# CHECK: Name: .prefix.data 37