llvm-project/llvm/test/tools/llvm-objcopy/ELF/section-index-unsupported.test
Fangrui Song 55c81d4282 [test] Use yaml2obj -o %t instead of > %t
To improve consistency and avoid unneeded shell feature (output
redirection).

While here, make other changes to improve consistency

--docnum 1 => --docnum=1
-docnum=x => --docnum=x
2020-01-21 17:20:18 -08:00

16 lines
388 B
Plaintext

# RUN: yaml2obj %s -o %t
# RUN: not llvm-objcopy %t %t2 2>&1 >/dev/null | FileCheck %s
!ELF
FileHeader:
Class: ELFCLASS64
Data: ELFDATA2LSB
Type: ET_EXEC
Machine: EM_X86_64
Symbols:
- Name: test
Index: 0xff05
Binding: STB_GLOBAL
# CHECK: symbol 'test' has unsupported value greater than or equal to SHN_LORESERVE: 65285