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 6SECTIONS { 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 g .aaa 0000000000000000 foo 21# CHECK: 0000000000001000 g .aaa 0000000000000000 bar 22# CHECK: 0000000000001001 g .aaa 0000000000000000 zed1 23# CHECK: 0000000000000fff g .aaa 0000000000000000 zed2 24