summaryrefslogtreecommitdiffstats
path: root/llvm/test/tools/llvm-objcopy/COFF/strip-reloc-symbol.test
blob: 9be4ab83521e0d1170f5f914a35ebd325a8d7766 (plain)
1
2
3
4
5
RUN: yaml2obj %p/Inputs/strip-symbols.yaml > %t.o
RUN: not llvm-objcopy -N foo %t.o 2>&1 | FileCheck %s --check-prefix=ERROR
RUN: not llvm-objcopy --strip-symbol foo %t.o 2>&1 | FileCheck %s --check-prefix=ERROR

ERROR: error: '{{.*}}{{/|\\}}strip-reloc-symbol.test.tmp.o': not stripping symbol 'foo' because it is named in a relocation
OpenPOWER on IntegriCloud