1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 20:23:11 +01:00
llvm-mirror/test/tools/llvm-objcopy/section-index-unsupported.test
Jake Ehrlich de99ea8a55 [llvm-objcopy] Add test to check that architecture specific values are not used on wrong architecture.
This change adds a test that checks the an error is produced when a hexagon
specific reserved section index is used but e_machine is not EM_HEXAGON.

Differential Revision: https://reviews.llvm.org/D38017

llvm-svn: 313661
2017-09-19 19:05:15 +00:00

16 lines
376 B
Plaintext

# RUN: yaml2obj %s > %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:
Global:
- Name: test
Index: 0xff05
# CHECK: Symbol 'test' has unsupported value greater than or equal to SHN_LORESERVE: 65285