1 ## Test common parsing errors general to all supported binary formats.
3 # RUN: yaml2obj %s -o %t
5 # RUN: not llvm-objcopy --redefine-sym bar %t /dev/null 2>&1 | FileCheck %s --check-prefix=BAD-FORMAT
6 # BAD-FORMAT: bad format for --redefine-sym
8 # RUN: not llvm-objcopy --redefine-sym foo=f1 --redefine-sym foo=f2 %t /dev/null 2>&1 | FileCheck %s --check-prefix=MULTIPLE-REDEFINITION
9 # MULTIPLE-REDEFINITION: multiple redefinition of symbol 'foo'
11 # RUN: echo ' foo oof #rename foo ' > %t.rename.txt
12 # RUN: echo 'bar' >> %t.rename.txt
13 # RUN: not llvm-objcopy --redefine-syms %t.rename.txt %t /dev/null 2>&1 | FileCheck %s --check-prefix=MISSING-SYM-NAME
14 # MISSING-SYM-NAME: error: {{.*}}.rename.txt:2: missing new symbol name
16 # RUN: not llvm-objcopy --redefine-syms %t.rename-none.txt %t /dev/null 2>&1 | FileCheck -DMSG=%errc_ENOENT %s --check-prefix=NO-FILE
17 # NO-FILE: error: '{{.*}}.rename-none.txt': [[MSG]]
28 Flags: [ SHF_ALLOC, SHF_EXECINSTR ]