brintos

brintos / llvm-project-archived public Read only

0
0
Text · 724 B · 088b646 Raw
25 lines · plain
1# REQUIRES: x862# RUN: rm -rf %t && split-file %s %t3# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %t/shared.s -o %t/shared.o4 5# CHECK: error: relocation R_X86_64_32 cannot be used against symbol '_shared'; recompile with -fPIC6# CHECK: >>> defined in {{.*}}7# CHECK: >>> referenced by {{.*}}:(.data+0x0)8 9## Check patching of negative addends10# RUN: llvm-mc -filetype=obj -triple=x86_64 %t/addend.s -o %t/addend.o11# RUN: not ld.lld --image-base=0 --section-start=.text=0x0 %t/addend.o -o /dev/null 2>&1 | FileCheck %s --check-prefix RANGE12 13# RANGE: relocation R_X86_64_32 out of range14 15#--- shared.s16.data17.long _shared18 19#--- addend.s20.text21.globl _start22_start:23    .reloc ., R_X86_64_32, .text-124    .space 425