brintos

brintos / llvm-project-archived public Read only

0
0
Text · 673 B · 60b34a2 Raw
23 lines · plain
1# REQUIRES: ppc2# RUN: echo 'SECTIONS { \3# RUN:   .text 0x10000: { *(.text) } \4# RUN:   .data 0x200010000 : { *(.data) } \5# RUN: }' > %t.script6 7# RUN: llvm-mc -filetype=obj -triple=powerpc64le %s -o %t.o8# RUN: not ld.lld -T %t.script %t.o -o /dev/null 2>&1 | FileCheck %s9 10# RUN: llvm-mc -filetype=obj -triple=powerpc64 %s -o %t.o11# RUN: not ld.lld -T %t.script %t.o -o /dev/null 2>&1 | FileCheck %s12 13# CHECK: relocation R_PPC64_PCREL34 out of range: 8589934592 is not in [-8589934592, 8589934591]; references section '.data'14	plwa 3, glob_overflow@PCREL(0), 115 16# CHECK-NOT: relocation17	plwa 3, .data@PCREL(0), 118 19.data20glob_overflow:21	.long	022	.size	glob_overflow, 423