brintos

brintos / llvm-project-archived public Read only

0
0
Text · 959 B · 49779e0 Raw
16 lines · plain
1# RUN: not llvm-objcopy -R .dynstr %p/Inputs/dynsym.so %t 2>&1 >/dev/null | FileCheck %s --check-prefix=ERR1 -DINPUT=%p/Inputs/dynsym.so2# RUN: cp  %p/Inputs/dynsym.so %t23# RUN: not llvm-strip --no-strip-all -R .dynstr %t2 2>&1 >/dev/null | FileCheck %s --check-prefix=ERR2 -DINPUT=%t24 5# ERR1: error: '[[INPUT]]': section '.dynstr' cannot be removed because it is referenced by the section '.dynsym'6# ERR2: error: '[[INPUT]]': section '.dynstr' cannot be removed because it is referenced by the section '.dynsym'7 8# RUN: llvm-objcopy --allow-broken-links -R .dynstr %p/Inputs/dynsym.so %t39# RUN: llvm-objdump --section-headers %t3 | FileCheck %s --check-prefix=SECTIONS --implicit-check-not=.dynstr10# RUN: cp  %p/Inputs/dynsym.so %t411# RUN: llvm-strip --no-strip-all --allow-broken-links -R .dynstr %t412# RUN: llvm-objdump --section-headers %t4 | FileCheck %s --check-prefix=SECTIONS --implicit-check-not=.dynstr13 14# SECTIONS: .dynsym15# SECTIONS: .dynamic16