[PowerPC] 32-bit ELF PIC support
[oota-llvm.git] / test / MC / PowerPC / ppc-reloc.s
1 # RUN: llvm-mc -triple=powerpc-unknown-linux-gnu -filetype=obj %s | \
2 # RUN: llvm-readobj -r | FileCheck %s
3         .section .text
4
5         .globl foo
6         .type foo,@function
7         .align 2
8 foo:
9         bl printf@plt
10 .LC1:
11         .size foo, . - foo
12
13 # CHECK:      Relocations [
14 # CHECK-NEXT:   Section (2) .rela.text {
15 # CHECK-NEXT:     0x0 R_PPC_PLTREL24 printf 0x0
16 # CHECK-NEXT:   }
17 # CHECK-NEXT: ]