forked from OSchip/llvm-project
22 lines
509 B
ArmAsm
22 lines
509 B
ArmAsm
# REQUIRES: ppc
|
|
|
|
# RUN: llvm-mc -filetype=obj -triple=powerpc64le-unknown-linux %s -o %t.o
|
|
# RUN: ld.lld -shared %t.o -o %t.so
|
|
# RUN: llvm-readobj -t -r -dyn-symbols %t.so | FileCheck %s
|
|
|
|
# RUN: llvm-mc -filetype=obj -triple=powerpc64-unknown-linux %s -o %t.o
|
|
# RUN: ld.lld -shared %t.o -o %t.so
|
|
# RUN: llvm-readobj -t -r -dyn-symbols %t.so | FileCheck %s
|
|
|
|
.section ".toc","aw"
|
|
.quad weakfunc
|
|
// CHECK-NOT: R_PPC64_RELATIVE
|
|
|
|
.text
|
|
.Lfoo:
|
|
bl weakfunc
|
|
nop
|
|
// CHECK-NOT: R_PPC64_REL24
|
|
|
|
.weak weakfunc
|