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
20 lines
616 B
Plaintext
20 lines
616 B
Plaintext
# REQUIRES: x86
|
|
# RUN: llvm-mc -filetype=obj -triple=i686-unknown-linux /dev/null -o %t.o
|
|
# RUN: ld.lld -z wxneeded --script %s %t.o -o %t
|
|
# RUN: llvm-readobj --program-headers %t | FileCheck %s
|
|
|
|
PHDRS { text PT_LOAD FILEHDR PHDRS; wxneeded PT_OPENBSD_WXNEEDED; }
|
|
|
|
# CHECK: ProgramHeader {
|
|
# CHECK: Type: PT_OPENBSD_WXNEEDED (0x65A3DBE7)
|
|
# CHECK-NEXT: Offset: 0x0
|
|
# CHECK-NEXT: VirtualAddress: 0x0
|
|
# CHECK-NEXT: PhysicalAddress: 0x0
|
|
# CHECK-NEXT: FileSize: 0
|
|
# CHECK-NEXT: MemSize: 0
|
|
# CHECK-NEXT: Flags [
|
|
# CHECK-NEXT: PF_R
|
|
# CHECK-NEXT: ]
|
|
# CHECK-NEXT: Alignment: 0
|
|
# CHECK-NEXT: }
|