From e81e4fcb926c87c2306e501140528a004d7f15ee Mon Sep 17 00:00:00 2001 From: Peter Smith Date: Thu, 9 Apr 2020 09:53:00 +0100 Subject: [PATCH] [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. --- lld/test/ELF/arm-adr-long.s | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lld/test/ELF/arm-adr-long.s b/lld/test/ELF/arm-adr-long.s index be2d0db077df..9ce7fea3f8ec 100644 --- a/lld/test/ELF/arm-adr-long.s +++ b/lld/test/ELF/arm-adr-long.s @@ -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