summaryrefslogtreecommitdiffstats
path: root/lld/test/ELF/linkerscript/locationcountererr.test
blob: 6a1b21319c5b5a0be72799a88e1ad09817d06d52 (plain)
1
2
3
4
5
6
7
8
9
10
11
# REQUIRES: x86
# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux /dev/null -o %t
# RUN: not ld.lld %t --script %s -o %t1 2>&1 | FileCheck %s
# CHECK: {{.*}}.test:8: unable to move location counter backward for: .text

SECTIONS {
  .text 0x2000 : {
    . = 0x10;
    *(.text)
  }
}
OpenPOWER on IntegriCloud