[LLD][ELF][ARM] Fix 32-bit Arm builders, by making test case smaller

Use AT(address) to force the creation of 3 small segments rather than
a single giant one, causing the Arm v8 builder to run out of memory.
This commit is contained in:
Peter Smith 2020-04-09 09:53:00 +01:00
parent 3e9d074dea
commit e81e4fcb92

View File

@ -1,9 +1,9 @@
// REQUIRES: arm
// RUN: llvm-mc --triple=armv7a-none-eabi --arm-add-build-attributes -filetype=obj -o %t.o %s
// RUN: echo "SECTIONS { \
// RUN: .text.0 0x10000000 : { *(.text.0) } \
// RUN: .text.1 0x80000000 : { *(.text.1) } \
// RUN: .text.2 0xf0000010 : { *(.text.2) } \
// RUN: .text.0 0x10000000 : AT(0x10000000) { *(.text.0) } \
// RUN: .text.1 0x80000000 : AT(0x80000000) { *(.text.1) } \
// RUN: .text.2 0xf0000010 : AT(0xf0000010) { *(.text.2) } \
// RUN: } " > %t.script
// RUN: ld.lld --script %t.script %t.o -o %t
// RUN: llvm-objdump -d --no-show-raw-insn --triple=armv7a-none-eabi %t | FileCheck %s