13 lines · plain
1# REQUIRES: x862# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux /dev/null -o %t1.o3# RUN: ld.lld -shared %t1.o --script %s -o %t4# RUN: llvm-readelf -s %t | FileCheck %s5 6SECTIONS {7 A = . + 0x1;8 . += 0x1000;9}10 11# CHECK: Value Size Type Bind Vis Ndx Name12# CHECK: 0000000000000001 0 NOTYPE GLOBAL DEFAULT 1 A13