1# REQUIRES: x86
2# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux /dev/null -o %t1.o
3# RUN: ld.lld -shared %t1.o --script %s -o %t
4# RUN: llvm-readelf -s %t | FileCheck %s
5
6SECTIONS {
7  A = . + 0x1;
8  . += 0x1000;
9}
10
11# CHECK:    Value         Size Type   Bind   Vis     Ndx Name
12# CHECK: 0000000000000001    0 NOTYPE GLOBAL DEFAULT   1 A
13