3 # RUN: yaml2obj %s -o %t.o
4 # RUN: not ld.lld %t.o -o /dev/null 2>&1 | FileCheck --check-prefix=ERR %s
5 # ERR: R_X86_64_GOTTPOFF must be used in MOVQ or ADDQ instructions only
6 # ERR: R_X86_64_GOTTPOFF must be used in MOVQ or ADDQ instructions only
8 ## YAML below contains 2 relocations of type R_X86_64_GOTTPOFF, and a .text
9 ## with fake content filled by 0xFF. That means instructions for relaxation are
10 ## "broken", so they does not match any known valid relaxations. We also generate
11 ## .tls section because we need it for correct processing of STT_TLS symbol.
16 OSABI: ELFOSABI_FREEBSD
22 Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
24 Content: "FFFFFFFFFFFFFFFF"
27 Flags: [ SHF_ALLOC, SHF_TLS ]
36 Type: R_X86_64_GOTTPOFF
39 Type: R_X86_64_GOTTPOFF