blob: b60666412b8a9c5cc1e70bbb2b97b992ccf5e5c5 [file] [log] [blame]
# 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-objdump -section-headers -t %t | FileCheck %s
SECTIONS {
A = . + 0x1;
. += 0x1000;
}
# CHECK: Sections:
# CHECK-NEXT: Idx Name Size Address
# CHECK-NEXT: 0 00000000 0000000000000000
# CHECK-NEXT: 1 .dynsym 00000030 0000000000001000
# CHECK: 5 .text 00000000 000000000000106c
# CHECK: 0000000000000001 .dynsym 00000000 A