2 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o
3 # RUN: ld.lld -z retpolineplt -z now %t.o -o %t
4 # RUN: llvm-objdump --no-print-imm-hex -d --no-show-raw-insn %t | FileCheck %s
6 #0x2011a9+5 + 34 = 0x2011d0 (foo@plt)
8 # CHECK-NEXT: 2011a9: callq 0x2011d0
10 #Static IPLT header due to -z retpolineplt
11 # CHECK: 00000000002011b0 <.plt>:
12 # CHECK-NEXT: 2011b0: callq 0x2011c0 <.plt+0x10>
13 # CHECK-NEXT: 2011b5: pause
14 # CHECK-NEXT: 2011b7: lfence
16 # CHECK: 2011d0: movq 4105(%rip), %r11
17 # CHECK-NEXT: 2011d7: jmp 0x2011b0 <.plt>
19 .type foo STT_GNU_IFUNC