2 # RUN: split-file %s %t
3 # RUN: llvm-mc -filetype=obj -triple=x86_64 %t/a.s -o %t/a.o
4 # RUN: not ld.lld %t/a.o -T %t/lds -o /dev/null 2>&1 | FileCheck %s
6 # CHECK: error: {{.*}}a.o:(.text+{{.*}}): relocation R_X86_64_PC32 out of range: {{.*}}; R_X86_64_PC32 should not reference a section marked SHF_X86_64_LARGE
11 .type _start, @function
13 movq hello
(%rip
), %rax
15 .section ldata,"awl",@progbits
23 .text 0x100000 : { *(.text) }
24 ldata
0x80200000 : { *(ldata
) }