Files
clang-p2996/lld/test/ELF/linkerscript/at5.test
Rui Ueyama dc32dc1770 Convert more .s files to linker script files.
Summary:
This change removes large "echo" commands from the test by writing
tests themselves as linker scripts.

Reviewers: rafael

Subscribers: emaste, javed.absar, llvm-commits, arichardson

Differential Revision: https://reviews.llvm.org/D43900

llvm-svn: 326403
2018-03-01 01:19:12 +00:00

15 lines
390 B
Plaintext

# REQUIRES: x86
# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux /dev/null -o %t.o
# RUN: not ld.lld -o %t.exe %t.o --script %s 2>&1 | FileCheck %s
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