llvm-project/lld/test/ELF/linkerscript/align5.test

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

24 lines
623 B
Plaintext
Raw Normal View History

# 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 g .aaa 0000000000000000 foo
# CHECK: 0000000000001000 g .aaa 0000000000000000 bar
# CHECK: 0000000000001001 g .aaa 0000000000000000 zed1
# CHECK: 0000000000000fff g .aaa 0000000000000000 zed2