Files
clang-p2996/lld/test/ELF/linkerscript/align5.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

24 lines
583 B
Plaintext

# REQUIRES: x86
# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %p/Inputs/align.s -o %t.o
# RUN: ld.lld -o %t --script %s %t.o
# RUN: llvm-objdump -t %t | FileCheck %s
SECTIONS {
. = 0xff8;
.aaa : {
*(.aaa)
foo = ALIGN(., 0x100);
bar = .;
zed1 = ALIGN(., 0x100) + 1;
zed2 = ALIGN(., 0x100) - 1;
}
.bbb : { *(.bbb); }
.ccc : { *(.ccc); }
.text : { *(.text); }
}
# CHECK: 0000000000001000 .aaa 00000000 foo
# CHECK: 0000000000001000 .aaa 00000000 bar
# CHECK: 0000000000001001 .aaa 00000000 zed1
# CHECK: 0000000000000fff .aaa 00000000 zed2