brintos

brintos / llvm-project-archived public Read only

0
0
Text · 590 B · fb8f3e4 Raw
26 lines · plain
1# REQUIRES: x862# RUN: split-file %s %t3# RUN: llvm-mc -filetype=obj -triple=x86_64 %t/a.s -o %t/a.o4# RUN: not ld.lld %t/a.o -T %t/lds -o /dev/null 2>&1 | FileCheck %s5 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_LARGE7 8#--- a.s9.text10.globl _start11.type _start, @function12_start:13  movq hello(%rip), %rax14 15.section ldata,"awl",@progbits16.type   hello, @object17.globl  hello18hello:19.long   120 21#--- lds22SECTIONS {23  .text 0x100000 : { *(.text) }24  ldata 0x80200000 : { *(ldata) }25}26