[Alignment][NFC] Instructions::getLoadStoreAlignment
[llvm-complete.git] / test / tools / llvm-objcopy / ELF / prefix-alloc-sections.test
blob4cb9df5330f7cb3cb86a28a5c440efd876810d01
1 # RUN: yaml2obj %s > %t
2 # RUN: llvm-objcopy --prefix-alloc-sections=.prefix %t %t2
3 # RUN: llvm-readobj --sections %t2 | FileCheck %s
5 !ELF
6 FileHeader:
7   Class:           ELFCLASS64
8   Data:            ELFDATA2LSB
9   Type:            ET_REL
10   Machine:         EM_X86_64
11 Sections:
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 ]
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