1# REQUIRES: ppc
2
3# RUN: llvm-mc -filetype=obj -triple=powerpc64le-unknown-linux %s -o %t.o
4# RUN: ld.lld -shared %t.o -o %t.so
5# RUN: llvm-readobj --symbols -r --dyn-syms %t.so | FileCheck %s
6
7# RUN: llvm-mc -filetype=obj -triple=powerpc64-unknown-linux %s -o %t.o
8# RUN: ld.lld -shared %t.o -o %t.so
9# RUN: llvm-readobj --symbols -r --dyn-syms %t.so | FileCheck %s
10
11.section        ".toc","aw"
12.quad weakfunc
13// CHECK-NOT: R_PPC64_RELATIVE
14
15.text
16.Lfoo:
17  bl weakfunc
18  nop
19// CHECK-NOT: R_PPC64_REL24
20
21.weak weakfunc
22