+# REQUIRES: X86
+
# This test checks that IRELATIVE relocations are created for symbols that
# need relocation even for static links.
RUN: lld -flavor gnu -target x86_64-linux --output-filetype=yaml -r \
+# REQUIRES: X86
+#
# This tests verifies that TLS variables have correct offsets
RUN: lld -flavor gnu -target x86_64-linux %p/Inputs/tls.x86-64 -static \
RUN: --output-filetype=yaml --noinhibit-exec | FileCheck %s -check-prefix=YAML
+REQUIRES: X86
+
RUN: lld -flavor gnu -target x86_64-linux -o %t1 %p/Inputs/relocs.x86-64 \
RUN: -e _start -static
RUN: llvm-objdump -d %t1 | FileCheck %s -check-prefix=RELOCS
+# REQUIRES: X86
+#
# RUN: lld -flavor darwin -arch x86_64 -macosx_version_min 10.8 %s -o %t \
# RUN: %p/Inputs/libSystem.yaml
# RUN: llvm-objdump -lazy-bind %t | FileCheck %s
+# REQUIRES: X86
+#
# RUN: yaml2obj %p/Inputs/alternatename1.obj.yaml > %t1.obj
# RUN: yaml2obj %p/Inputs/alternatename2.obj.yaml > %t2.obj
# RUN: yaml2obj %p/Inputs/alternatename3.obj.yaml > %t3.obj
+# REQUIRES: ARM
+#
# RUN: yaml2obj -format coff -o %t.obj %p/Inputs/armnt-blx23t.obj.yaml
# RUN: llvm-objdump -d %t.obj | FileCheck %s -check-prefix BEFORE
# RUN: lld -flavor link /entry:function /subsystem:console /out:%t.exe %t.obj
+# REQUIRES: ARM
+#
# RUN: yaml2obj -format coff -o %t.obj %p/Inputs/armnt-branch24t.obj.yaml
# RUN: llvm-objdump -d %t.obj | FileCheck %s -check-prefix BEFORE
# RUN: lld -flavor link /entry:function /subsystem:console /out:%t.exe %t.obj
+# REQUIRES: ARM
+#
# RUN: yaml2obj -format coff -o %t.obj %p/Inputs/armnt-mov32t-exec.obj.yaml
# RUN: llvm-objdump -d %t.obj | FileCheck %s -check-prefix BEFORE
# RUN: lld -flavor link /out:%t.exe /subsystem:console /entry:get_function %t.obj
+# REQUIRES: ARM
+#
# RUN: yaml2obj -format coff -o %t.obj %p/Inputs/armnt-mov32t.obj.yaml
# RUN: llvm-objdump -d %t.obj | FileCheck %s -check-prefix BEFORE
# RUN: lld -flavor link /entry:get_buffer /subsystem:console /out:%t.exe %t.obj
+# REQUIRES: X86
+#
# RUN: yaml2obj %p/Inputs/common-symbol.obj.yaml > %t.obj
#
# RUN: lld -flavor link /machine:x64 /out:%t.exe /subsystem:console /force \
+# REQUIRES: X86
+#
# RUN: yaml2obj %p/Inputs/hello64.obj.yaml > %t.obj
# RUN: lld -flavor link /out:%t.exe /subsystem:windows /machine:x64 \
+# REQUIRES: X86
+#
# RUN: yaml2obj %p/Inputs/imagebase.obj.yaml > %t.obj
# RUN: lld -flavor link /out:%t1.exe /subsystem:console /entry:_start \
+# REQUIRES: X86
+#
# Verify that lld can handle .lib files. "main.obj" refers "var" and
# "fn" defined in "vars.lib".
#
+# REQUIRES: X86
+#
# Verify that lld can handle a library file.
#
# RUN: yaml2obj %p/Inputs/main.obj.yaml > %t.obj
+# REQUIRES: X86
+#
# Verify that lld can handle multiple input files.
#
# RUN: yaml2obj %p/Inputs/main.obj.yaml > %t1.obj
+# REQUIRES: X86
+#
# RUN: yaml2obj %p/Inputs/reloc.obj.yaml > %t.obj
#
# RUN: lld -flavor link /out:%t.exe /subsystem:console /force /opt:noref \
+# REQUIRES: X86
+#
# RUN: yaml2obj %p/Inputs/reloc64.obj.yaml > %t.obj
# RUN: lld -flavor link /out:%t.exe /subsystem:console /machine:x64 \