1 # RUN: yaml2obj %s > %t
2 # RUN: llvm-objcopy --rename-section=.text=.text2 --rename-section=.data=.data2 --prefix-alloc-sections=.prefix %t %t2
3 # RUN: llvm-readobj --sections %t2 | FileCheck %s
5 # .text/.rel.text and .data/.rela.data are the cases when the relocation section
6 # comes after/before its target section respectively. We handle them in different
7 # ways to perform both --rename-section and --prefix-alloc-sections in one pass.
29 # CHECK: Name: .prefix.text2
30 # CHECK: Name: .rel.prefix.text2
31 # CHECK: Name: .rela.prefix.data2
32 # CHECK: Name: .prefix.data2