brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.1 KiB · bb214d9 Raw
26 lines · plain
1# RUN: yaml2obj %s -o %t2# RUN: not llvm-objcopy -R .strtab %t %t2 2>&1 >/dev/null | FileCheck %s --check-prefix=ERR1 -DINPUT=%t3# RUN: cp %t %t34# RUN: not llvm-strip --no-strip-all -R .strtab %t3 2>&1 >/dev/null | FileCheck %s --check-prefix=ERR2 -DINPUT=%t35 6!ELF7FileHeader:8  Class:           ELFCLASS649  Data:            ELFDATA2LSB10  Type:            ET_REL11  Machine:         EM_X86_6412Symbols: []13 14# ERR1: error: '[[INPUT]]': string table '.strtab' cannot be removed because it is referenced by the symbol table '.symtab'15# ERR2: error: '[[INPUT]]': string table '.strtab' cannot be removed because it is referenced by the symbol table '.symtab'16 17# RUN: llvm-objcopy --allow-broken-links -R .strtab %t %t418# RUN: llvm-readobj --section-headers %t4 | FileCheck %s --check-prefix=SECTIONS --implicit-check-not=.strtab19# RUN: cp %t %t520# RUN: llvm-strip --no-strip-all --allow-broken-links -R .strtab %t %t521# RUN: llvm-readobj --section-headers %t5 | FileCheck %s --check-prefix=SECTIONS --implicit-check-not=.strtab22 23# SECTIONS:      Name: .symtab24# SECTIONS:      Link25# SECTIONS-SAME:     : 026