Peter Smith | 75030b6d | 2017-10-27 09:04:11 | [diff] [blame] | 1 | // RUN: llvm-mc -filetype=obj -triple=thumbv7a-none-linux-gnueabi %s -o %t |
| 2 | // RUN: not ld.lld %t -o %t2 2>&1 | FileCheck %s |
| 3 | // REQUIRES: arm |
| 4 | .syntax unified |
| 5 | .balign 0x1000 |
| 6 | .thumb |
| 7 | .text |
| 8 | .globl _start |
| 9 | .type _start, %function |
| 10 | _start: |
| 11 | bx lr |
| 12 | |
| 13 | .section .text.large1, "ax", %progbits |
| 14 | .balign 4 |
| 15 | .space (17 * 1024 * 1024) |
| 16 | bl _start |
| 17 | .space (17 * 1024 * 1024) |
| 18 | |
| 19 | // CHECK: error: InputSection too large for range extension thunk {{.*}}.text.large1 |