Files
clang-p2996/lld/test/ELF/rodynamic.s
Joel Jones a5752e199c [lld] Add REQUIRES: x86 where needed to tests
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
2018-06-06 13:56:51 +00:00

37 lines
1.1 KiB
ArmAsm

# REQUIRES: x86
# RUN: llvm-mc %s -o %t.o -filetype=obj -triple=x86_64-pc-linux
# RUN: llvm-mc %p/Inputs/rodynamic.s -o %t.so.o -filetype=obj -triple=x86_64-pc-linux
# RUN: ld.lld -shared %t.so.o -o %t.so
# RUN: ld.lld %t.o %t.so -o %t.exe
# RUN: llvm-readobj -dynamic-table %t.exe | FileCheck -check-prefix=DEFDEBUG %s
# RUN: llvm-readobj -sections %t.exe | FileCheck -check-prefix=DEFSEC %s
# RUN: ld.lld -shared -z rodynamic %t.so.o -o %t.so
# RUN: ld.lld -z rodynamic %t.o %t.so -o %t.exe
# RUN: llvm-readobj -dynamic-table %t.exe | FileCheck -check-prefix=RODEBUG %s
# RUN: llvm-readobj -sections %t.exe | FileCheck -check-prefix=ROSEC %s
.globl _start
_start:
call foo
# DEFDEBUG: DEBUG
# DEFSEC: Section {
# DEFSEC: Name: .dynamic
# DEFSEC-NEXT: Type: SHT_DYNAMIC
# DEFSEC-NEXT: Flags [
# DEFSEC-NEXT: SHF_ALLOC
# DEFSEC-NEXT: SHF_WRITE
# DEFSEC-NEXT: ]
# RODEBUG-NOT: DEBUG
# ROSEC: Section {
# ROSEC: Name: .dynamic
# ROSEC-NEXT: Type: SHT_DYNAMIC
# ROSEC-NEXT: Flags [
# ROSEC-NEXT: SHF_ALLOC
# ROSEC-NEXT: ]