llvm-project/lld/test/MachO/invalid/bad-tlv-opcode.s
Greg McGary 3a9d2f1488 [lld-macho][NFC] refactor relocation handling
Add per-reloc-type attribute bits and migrate code from per-target file into target independent code, driven by reloc attributes.

Many cleanups

Differential Revision: https://reviews.llvm.org/D95121
2021-02-02 10:54:53 -07:00

15 lines
313 B
ArmAsm

# REQUIRES: x86
# RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %s -o %t.o
# RUN: not %lld -o /dev/null %t.o 2>&1 | FileCheck %s
# CHECK: error: TLV reloc requires MOVQ instruction
.text
.globl _main
_main:
leaq _foo@TLVP(%rip), %rax
ret
.section __DATA,__thread_vars,thread_local_variables
_foo: