non-absolute2.test 341 Bytes
# REQUIRES: x86
# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux /dev/null -o %t1.o
# RUN: ld.lld -shared %t1.o --script %s -o %t
# RUN: llvm-readelf -s %t | FileCheck %s

SECTIONS {
  A = . + 0x1;
  . += 0x1000;
}

# CHECK:    Value         Size Type   Bind   Vis     Ndx Name
# CHECK: 0000000000000001    0 NOTYPE GLOBAL DEFAULT   1 A