aboutsummaryrefslogtreecommitdiffstats
path: root/test/MC/PowerPC/ppc-reloc.s
blob: 19dd2a3cf4e84e469d744676e69658d98061ea6e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# RUN: llvm-mc -triple=powerpc-unknown-linux-gnu -filetype=obj %s | \
# RUN: llvm-readobj -r | FileCheck %s
	.section .text

	.globl foo
	.type foo,@function
	.align 2
foo:
	bl printf@plt
.LC1:
	.size foo, . - foo

# CHECK:      Relocations [
# CHECK-NEXT:   Section (2) .rela.text {
# CHECK-NEXT:     0x0 R_PPC_PLTREL24 printf 0x0
# CHECK-NEXT:   }
# CHECK-NEXT: ]