brintos

brintos / llvm-project-archived public Read only

0
0
Text · 561 B · 44a099d Raw
24 lines · plain
1# REQUIRES: ppc2# RUN: llvm-mc -filetype=obj -triple=powerpc %s -o %t.o3# RUN: ld.lld -shared %t.o -o %t.so4# RUN: llvm-nm %t.so | FileCheck --check-prefix=NM %s5# RUN: llvm-readobj -r %t.so | FileCheck --check-prefix=RELOC %s6 7## R_PPC_ADDR32 is an absolute relocation type.8## In PIC mode, it creates a relative relocation if the symbol is non-preemptable.9 10# NM: 00030204 d b11 12# RELOC:      .rela.dyn {13# RELOC-NEXT:   0x30204 R_PPC_RELATIVE - 0x3020414# RELOC-NEXT:   0x30200 R_PPC_ADDR32 a 015# RELOC-NEXT: }16 17.globl a, b18.hidden b19 20.data21.long a22b:23.long b24