21 lines · plain
1# REQUIRES: ppc2# RUN: llvm-mc -filetype=obj -triple=powerpc %s -o %t.o3# RUN: ld.lld %t.o -o %t4# RUN: llvm-objdump -d --no-show-raw-insn %t | FileCheck --check-prefix=STATIC %s5# RUN: ld.lld -pie %t.o -o %t6# RUN: llvm-objdump -d --no-show-raw-insn %t | FileCheck --check-prefix=STATIC %s7# RUN: ld.lld -shared %t.o -o %t8# RUN: llvm-objdump -d --no-show-raw-insn %t | FileCheck --check-prefix=PIC %s9 10## It does not really matter how we fixup it, but we cannot overflow and11## should not generate a call stub (this would waste space).12# STATIC: bl {{.*}} <.text>13 14## With -pie or -shared, create a call stub. ld.bfd produces bl .+015# PIC: bl 0x[[PLT:[0-9a-f]+]]16# PIC-EMPTY:17# PIC-NEXT: 000[[PLT]] <00000000.plt_pic32.foo>:18 19.weak foo20bl foo21