brintos

brintos / llvm-project-archived public Read only

0
0
Text · 987 B · 64d6d92 Raw
25 lines · plain
1// REQUIRES: x862 3// RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %p/Inputs/shared.s -o %t1.o4// RUN: ld.lld -o %t.so -shared %t1.o -soname=so5 6// RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t2.o7// RUN: ld.lld -o %t1.exe %t2.o %t.so --image-base=0xcafe000000008// RUN: llvm-objdump -s -j .got.plt %t1.exe | FileCheck %s9 10// CHECK:      Contents of section .got.plt:11// CHECK-NEXT: cafe00003380 b0220000 feca0000 00000000 0000000012// CHECK-NEXT: cafe00003390 00000000 00000000 a6120000 feca000013 14// RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t2.o15// RUN: ld.lld -o %t2.exe %t2.o %t.so --image-base=0xcafe00000000 -z retpolineplt16// RUN: llvm-objdump -s -j .got.plt %t2.exe | FileCheck --check-prefix=RETPOLINE %s17 18// RETPOLINE:      Contents of section .got.plt:19// RETPOLINE-NEXT: cafe000033b0 e0220000 feca0000 00000000 0000000020// RETPOLINE-NEXT: cafe000033c0 00000000 00000000 d1120000 feca000021 22.global _start23_start:24  jmp bar@PLT25