diff options
Diffstat (limited to 'test/ELF/linkerscript/output-too-large.s')
-rw-r--r-- | test/ELF/linkerscript/output-too-large.s | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/ELF/linkerscript/output-too-large.s b/test/ELF/linkerscript/output-too-large.s new file mode 100644 index 000000000000..db021eaa99e0 --- /dev/null +++ b/test/ELF/linkerscript/output-too-large.s @@ -0,0 +1,8 @@ +# RUN: llvm-mc -filetype=obj -triple=i686-unknown-linux %s -o %t.o +# RUN: echo "SECTIONS { .text : { . = 0xffffffff; *(.text*); } }" > %t.script +# RUN: not ld.lld --script %t.script %t.o -o %t 2>&1 | FileCheck %s +# CHECK: error: output file too large + +.global _start +_start: + nop |