1# REQUIRES: ppc 2# RUN: echo 'SECTIONS { \ 3# RUN: .text 0x10000: { *(.text) } \ 4# RUN: .data 0x200010000 : { *(.data) } \ 5# RUN: }' > %t.script 6 7# RUN: llvm-mc -filetype=obj -triple=powerpc64le %s -o %t.o 8# RUN: not ld.lld -T %t.script %t.o -o /dev/null 2>&1 | FileCheck %s 9 10# RUN: llvm-mc -filetype=obj -triple=powerpc64 %s -o %t.o 11# RUN: not ld.lld -T %t.script %t.o -o /dev/null 2>&1 | FileCheck %s 12 13# CHECK: relocation R_PPC64_PCREL34 out of range: 8589934592 is not in [-8589934592, 8589934591] 14 plwa 3, glob_overflow@PCREL(0), 1 15 16# CHECK-NOT: relocation 17 plwa 3, .data@PCREL(0), 1 18 19.data 20glob_overflow: 21 .long 0 22 .size glob_overflow, 4 23