Following possible scripts triggered accessing to Target when it was not yet
initialized (was nullptr).
MEMORY { name : ORIGIN = DATA_SEGMENT_RELRO_END; }
MEMORY { name : ORIGIN = CONSTANT(COMMONPAGESIZE); }
Patch errors out instead.
Differential revision: https://reviews.llvm.org/D36140
llvm-svn: 309953
11 lines
545 B
ArmAsm
11 lines
545 B
ArmAsm
# REQUIRES: x86
|
|
# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t
|
|
# RUN: echo "MEMORY { name : ORIGIN = DATA_SEGMENT_RELRO_END; }" > %t.script
|
|
# RUN: not ld.lld -shared -o %t2 --script %t.script %t 2>&1 | FileCheck %s
|
|
# CHECK: error: {{.*}}.script:1: unable to calculate page size
|
|
|
|
# RUN: echo "MEMORY { name : ORIGIN = CONSTANT(COMMONPAGESIZE); }" > %t.script
|
|
# RUN: not ld.lld -shared -o %t2 --script %t.script %t 2>&1 |\
|
|
# RUN: FileCheck %s --check-prefix=ERR2
|
|
# ERR2: error: {{.*}}.script:1: unable to calculate page size
|