2014-07-19 07:29:49 +08:00
|
|
|
# RUN: llvm-mc -triple=powerpc-unknown-linux-gnu -filetype=obj %s | \
|
2020-07-20 15:39:14 +08:00
|
|
|
# RUN: llvm-readobj -r - | FileCheck %s
|
2014-07-19 07:29:49 +08:00
|
|
|
.section .text
|
|
|
|
|
|
|
|
.globl foo
|
|
|
|
.type foo,@function
|
|
|
|
.align 2
|
|
|
|
foo:
|
|
|
|
bl printf@plt
|
2014-12-17 14:23:35 +08:00
|
|
|
bl _GLOBAL_OFFSET_TABLE_@local-4
|
2014-07-19 07:29:49 +08:00
|
|
|
.LC1:
|
|
|
|
.size foo, . - foo
|
|
|
|
|
|
|
|
# CHECK: Relocations [
|
2015-04-15 23:59:37 +08:00
|
|
|
# CHECK-NEXT: Section {{.*}} .rela.text {
|
2014-07-19 07:29:49 +08:00
|
|
|
# CHECK-NEXT: 0x0 R_PPC_PLTREL24 printf 0x0
|
2014-12-17 14:23:35 +08:00
|
|
|
# CHECK-NEXT: 0x4 R_PPC_LOCAL24PC _GLOBAL_OFFSET_TABLE_ 0xFFFFFFFC
|
2014-07-19 07:29:49 +08:00
|
|
|
# CHECK-NEXT: }
|
|
|
|
# CHECK-NEXT: ]
|