]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/ELF/linkerscript/at5.test
Vendor import of lld trunk r338150:
[FreeBSD/FreeBSD.git] / test / ELF / linkerscript / at5.test
1 # REQUIRES: x86
2 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux /dev/null -o %t.o
3 # RUN: not ld.lld -o %t.exe %t.o --script %s 2>&1 | FileCheck %s
4
5 MEMORY {
6   FLASH (ax) : ORIGIN = 0x2000, LENGTH = 0x100
7   RAM (aw)   : ORIGIN = 0x5000, LENGTH = 0x100
8 }
9
10 SECTIONS {
11   .foo1 : AT(0x500) { *(.foo1) } > FLASH AT>FLASH
12 }
13
14 # CHECK: error: section can't have both LMA and a load region