1*55c81d42SFangrui Song# RUN: yaml2obj %s -o %t 2298ea3f5SJordan Rupprecht# RUN: llvm-objcopy -R .symtab -R .strtab --only-section=.test %t %t2 385985ed3SJake Ehrlich# RUN: llvm-objcopy -j .test -R .strtab -R .symtab %t %t3 4298ea3f5SJordan Rupprecht# RUN: llvm-readobj --file-headers --sections %t2 | FileCheck %s 585985ed3SJake Ehrlich# RUN: diff %t2 %t3 685985ed3SJake Ehrlich 785985ed3SJake Ehrlich!ELF 885985ed3SJake EhrlichFileHeader: 985985ed3SJake Ehrlich Class: ELFCLASS64 1085985ed3SJake Ehrlich Data: ELFDATA2LSB 1185985ed3SJake Ehrlich Type: ET_REL 1285985ed3SJake Ehrlich Machine: EM_X86_64 1385985ed3SJake EhrlichSections: 1485985ed3SJake Ehrlich - Name: .test 1585985ed3SJake Ehrlich Type: SHT_PROGBITS 1685985ed3SJake Ehrlich Flags: [ ] 1785985ed3SJake Ehrlich 1885985ed3SJake Ehrlich# CHECK: SectionHeaderCount: 3 1985985ed3SJake Ehrlich 2085985ed3SJake Ehrlich# CHECK: Name: .test 2185985ed3SJake Ehrlich# CHECK: Name: .shstrtab 22