xref: /llvm-project/lld/test/ELF/linkerscript/locationcountererr.test (revision 0de0b6dded4752040350feb9c81415d82478d065)
1# REQUIRES: x86
2# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux /dev/null -o %t
3# RUN: not ld.lld %t --script %s -o /dev/null 2>&1 | FileCheck %s
4# CHECK: {{.*}}.test:8: unable to move location counter (0x2000) backward to 0x10 for section '.text'
5
6SECTIONS {
7  .text 0x2000 : {
8    . = 0x10;
9    *(.text)
10  }
11}
12