2018-03-01 09:19:12 +08:00
|
|
|
# REQUIRES: x86
|
|
|
|
# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux /dev/null -o %t.o
|
2020-02-13 13:48:45 +08:00
|
|
|
# RUN: not ld.lld -o /dev/null %t.o --script %s 2>&1 | FileCheck %s
|
2018-03-01 09:19:12 +08:00
|
|
|
|
|
|
|
MEMORY {
|
|
|
|
FLASH (ax) : ORIGIN = 0x2000, LENGTH = 0x100
|
|
|
|
RAM (aw) : ORIGIN = 0x5000, LENGTH = 0x100
|
|
|
|
}
|
|
|
|
|
|
|
|
SECTIONS {
|
|
|
|
.foo1 : AT(0x500) { *(.foo1) } > FLASH AT>FLASH
|
|
|
|
}
|
|
|
|
|
|
|
|
# CHECK: error: section can't have both LMA and a load region
|