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

Peter Smith via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 9 02:33:58 PDT 2020


Author: Peter Smith
Date: 2020-04-09T10:33:02+01:00
New Revision: e81e4fcb926c87c2306e501140528a004d7f15ee

URL: https://github.com/llvm/llvm-project/commit/e81e4fcb926c87c2306e501140528a004d7f15ee
DIFF: https://github.com/llvm/llvm-project/commit/e81e4fcb926c87c2306e501140528a004d7f15ee.diff

LOG: [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.

Added: 
    

Modified: 
    lld/test/ELF/arm-adr-long.s

Removed: 
    


################################################################################
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


        


More information about the llvm-commits mailing list