If building lld without x86 support, tests that require that support should
be treated as unsupported, not errors.
Tested using:
1. cmake '-DLLVM_TARGETS_TO_BUILD=AArch64;X86'
make check-lld
=>
Expected Passes : 1406
Unsupported Tests : 287
2. cmake '-DLLVM_TARGETS_TO_BUILD=AArch64'
make check-lld
=>
Expected Passes : 410
Unsupported Tests : 1283
Patch by Joel Jones
Differential Revision: https://reviews.llvm.org/D47748
llvm-svn: 334095
16 lines
377 B
ArmAsm
16 lines
377 B
ArmAsm
# REQUIRES: x86
|
|
# RUN: llvm-mc %s -filetype=obj -triple=x86_64-windows-msvc -o %t.obj
|
|
# RUN: not lld-link -entry:main -nodefaultlib %t.obj -out:%t.exe 2>&1 | FileCheck %s
|
|
|
|
# secrel relocations against absolute symbols are errors.
|
|
|
|
# CHECK: SECREL relocation cannot be applied to absolute symbols
|
|
|
|
.text
|
|
.global main
|
|
main:
|
|
ret
|
|
|
|
.section .rdata,"dr"
|
|
.secrel32 __guard_fids_table
|