25 lines · plain
1## This test verifies that llvm-objcopy can handle renaming a section to and2## from an empty string.3# RUN: yaml2obj %s -o %t.o4 5# RUN: llvm-objcopy %t.o %t2.o --rename-section=.foo=6# RUN: llvm-readobj --sections %t2.o | FileCheck %s --check-prefix=TO7 8# RUN: llvm-objcopy %t2.o %t3.o --rename-section==.bar9# RUN: llvm-readobj --sections %t3.o | FileCheck %s --check-prefix=FROM10 11--- !ELF12FileHeader:13 Class: ELFCLASS6414 Data: ELFDATA2LSB15 Type: ET_REL16 Machine: EM_X86_6417Sections:18 - Name: .foo19 Type: SHT_PROGBITS20 21# TO: Index: 122# TO-NEXT: Name: (0)23# FROM: Index: 124# FROM-NEXT: Name: .bar (25