15 lines · plain
1// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -r --symbols - | FileCheck %s2 3// Test that the relocations point to the correct symbols.4 5 .weakref bar,foo6 call zed@PLT7 call bar8 9// CHECK: Relocations [10// CHECK-NEXT: Section ({{[0-9]+}}) {{[^ ]+}} {11// CHECK-NEXT: 0x1 R_X86_64_PLT32 zed 0xFFFFFFFFFFFFFFFC12// CHECK-NEXT: 0x6 R_X86_64_PLT32 foo 0xFFFFFFFFFFFFFFFC13// CHECK-NEXT: }14// CHECK-NEXT: ]15