brintos

brintos / llvm-project-archived public Read only

0
0
Text · 612 B · d6f1e15 Raw
23 lines · plain
1// REQUIRES: x862// RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o3// RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %p/Inputs/shared.s -o %t2.o4// RUN: ld.lld -shared %t2.o -o %t2.so5// RUN: ld.lld %t.o %t2.so -o %t6// RUN: llvm-readobj -r %t | FileCheck %s7 8// We used to record the wrong symbol index for this test9 10// CHECK:      Relocations [11// CHECK-NEXT:   Section ({{.*}}) .rela.plt {12// CHECK-NEXT:     {{.*}} R_X86_64_JUMP_SLOT bar 0x013// CHECK-NEXT:   }14// CHECK-NEXT: ]15 16        .global foobar17foobar:18        .global zedx19zedx:20        .global _start21_start:22.quad bar23