[lld] r292220 - [ELF] - Added huge-temporary-file.s testcase.

George Rimar via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 17 06:04:17 PST 2017


Author: grimar
Date: Tue Jan 17 08:04:16 2017
New Revision: 292220

URL: http://llvm.org/viewvc/llvm-project?rev=292220&view=rev
Log:
[ELF] - Added huge-temporary-file.s testcase.

Inputs shown in that testcase previously created
a huge temporarily file under 32 bits.

It was fixed by D28107. During review was suggested to
add a testcase even without CHECKs for documentation purposes.

Patch do that.

Added:
    lld/trunk/test/ELF/linkerscript/huge-temporary-file.s

Added: lld/trunk/test/ELF/linkerscript/huge-temporary-file.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/linkerscript/huge-temporary-file.s?rev=292220&view=auto
==============================================================================
--- lld/trunk/test/ELF/linkerscript/huge-temporary-file.s (added)
+++ lld/trunk/test/ELF/linkerscript/huge-temporary-file.s Tue Jan 17 08:04:16 2017
@@ -0,0 +1,12 @@
+# REQUIRES: x86
+# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t
+# RUN: echo "SECTIONS { .text 0x2000 : {. = 0x10 ; *(.text) } }" > %t.script
+# RUN: not ld.lld %t --script %t.script -o %t1 2>&1 | FileCheck %s
+
+## This inputs previously created a 4gb temporarily fine under 32 bit
+## configuration. Issue was fixed. There is no clean way to check that from here.
+## This testcase added for documentation purposes.
+
+.globl _start
+_start:
+nop




More information about the llvm-commits mailing list