brintos

brintos / llvm-project-archived public Read only

0
0
Text · 788 B · bcd23a8 Raw
23 lines · plain
1// REQUIRES: x862// RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o3// RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %p/Inputs/relocation-copy.s -o %t2.o4// RUN: ld.lld -shared %t2.o -o %t.so5// RUN: not ld.lld -z nocopyreloc %t.o %t.so -o /dev/null 2>&1 | FileCheck %s6 7// CHECK: unresolvable relocation R_X86_64_32S against symbol 'x'8// CHECK: unresolvable relocation R_X86_64_32S against symbol 'y'9// CHECK: unresolvable relocation R_X86_64_32S against symbol 'z'10// CHECK: unresolvable relocation R_X86_64_32 against symbol 'x'11// CHECK: unresolvable relocation R_X86_64_32 against symbol 'y'12// CHECK: unresolvable relocation R_X86_64_32 against symbol 'z'13 14.text15.global _start16_start:17movl $5, x18movl $7, y19movl $9, z20movl $x, %edx21movl $y, %edx22movl $z, %edx23