2018-05-04 23:09:49 +08:00
|
|
|
# REQUIRES: ppc
|
|
|
|
|
|
|
|
# RUN: llvm-mc -filetype=obj -triple=powerpc64le-unknown-linux %s -o %t.o
|
|
|
|
# RUN: ld.lld -shared %t.o -o %t.so
|
2019-05-01 13:49:01 +08:00
|
|
|
# RUN: llvm-readobj --symbols -r --dyn-syms %t.so | FileCheck %s
|
2018-05-04 23:09:49 +08:00
|
|
|
|
2015-10-17 06:11:05 +08:00
|
|
|
# RUN: llvm-mc -filetype=obj -triple=powerpc64-unknown-linux %s -o %t.o
|
2015-11-18 14:11:01 +08:00
|
|
|
# RUN: ld.lld -shared %t.o -o %t.so
|
2019-05-01 13:49:01 +08:00
|
|
|
# RUN: llvm-readobj --symbols -r --dyn-syms %t.so | FileCheck %s
|
2015-10-17 06:11:05 +08:00
|
|
|
|
|
|
|
.section ".toc","aw"
|
|
|
|
.quad weakfunc
|
|
|
|
// CHECK-NOT: R_PPC64_RELATIVE
|
|
|
|
|
2015-10-17 08:48:20 +08:00
|
|
|
.text
|
|
|
|
.Lfoo:
|
|
|
|
bl weakfunc
|
2018-04-23 23:01:24 +08:00
|
|
|
nop
|
2015-10-17 08:48:20 +08:00
|
|
|
// CHECK-NOT: R_PPC64_REL24
|
|
|
|
|
2015-10-17 06:11:05 +08:00
|
|
|
.weak weakfunc
|