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
6 # CHECK-LABEL: SYMBOL TABLE:
7 # CHECK-NEXT: 0000000000014008 g .text 0000000000000000 _start
8 # CHECK-NEXT: 0000000000010000 g *ABS* 0000000000000000 __code_base__
9 # CHECK-NEXT: 0000000000001000 g *ABS* 0000000000000000 VAR
10 # CHECK-NEXT: 0000000000011000 g .bbb 0000000000000000 __start_bbb
11 # CHECK-NEXT: 0000000000012000 g .bbb 0000000000000000 __end_bbb
14 __code_base__ = 0x10000;
19 .bbb : ALIGN(VAR) { *(.bbb) }
20 . = ALIGN(., VAR * 4);
22 __start_bbb = ADDR(.bbb);
23 __end_bbb = ALIGN(__start_bbb + SIZEOF(.bbb), VAR);