Files
clang-p2996/lld/test/ELF/ppc-rela.s
Rui Ueyama fce6112a87 [LLD] Use Rela on PowerPC too
Patch by Nicholas Allegra.

The spec for ELF on PowerPC:
http://refspecs.linux-foundation.org/elf/elfspec_ppc.pdf
says:
"The PowerPC family uses only the Elf32_Rela relocation entries with
explicit addends."

(EM_PPC64 should be covered by Config->Is64 already.)

Differential Revision: https://reviews.llvm.org/D40826

llvm-svn: 323843
2018-01-31 02:03:55 +00:00

12 lines
286 B
ArmAsm

# REQUIRES: ppc
# RUN: llvm-mc -filetype=obj -triple=powerpc-unknown-freebsd %s -o %t
# RUN: ld.lld %t -o %t2 -shared
# RUN: llvm-readobj -r %t2 | FileCheck %s
.data
.long foo
// CHECK: Section ({{.*}}) .rela.dyn {
// CHECK-NEXT: 0x1000 R_PPC_ADDR32 foo 0x0
// CHECK-NEXT: }