2 # RUN: echo 'SECTIONS { \
3 # RUN: .text 0x10000: { *(.text) } \
4 # RUN: .data 0x200010000 : { *(.data) } \
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
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
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), 1
16 # CHECK-NOT: relocation
17 plwa
3, .data@PCREL(0), 1
22 .size glob_overflow, 4