]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/ELF/linkerscript/align5.test
Vendor import of lld trunk r338150:
[FreeBSD/FreeBSD.git] / test / ELF / linkerscript / align5.test
1 # REQUIRES: x86
2 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %p/Inputs/align.s -o %t.o
3 # RUN: ld.lld -o %t --script %s %t.o
4 # RUN: llvm-objdump -t %t | FileCheck %s
5
6 SECTIONS {
7   . = 0xff8;
8   .aaa : {
9     *(.aaa)
10     foo = ALIGN(., 0x100);
11     bar = .;
12     zed1 = ALIGN(., 0x100) + 1;
13     zed2 = ALIGN(., 0x100) - 1;
14   }
15   .bbb : { *(.bbb); }
16   .ccc : { *(.ccc); }
17   .text : { *(.text); }
18 }
19
20 # CHECK: 0000000000001000 .aaa 00000000 foo
21 # CHECK: 0000000000001000 .aaa 00000000 bar
22 # CHECK: 0000000000001001 .aaa 00000000 zed1
23 # CHECK: 0000000000000fff .aaa 00000000 zed2