Home | History | Annotate | Download | only in ELF
      1 // RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -r -t | FileCheck %s
      2 
      3 // Test that the relocations point to the correct symbols.
      4 
      5 	.weakref bar,foo
      6         call    zed@PLT
      7      call	bar
      8 
      9 // CHECK:      Relocations [
     10 // CHECK-NEXT:   Section ({{[0-9]+}}) {{[^ ]+}} {
     11 // CHECK-NEXT:     0x1 R_X86_64_PLT32 zed 0xFFFFFFFFFFFFFFFC
     12 // CHECK-NEXT:     0x6 R_X86_64_PC32 foo 0xFFFFFFFFFFFFFFFC
     13 // CHECK-NEXT:   }
     14 // CHECK-NEXT: ]
     15