1# REQUIRES: x86 2# RUN: echo '.section bar, "a"' \ 3# RUN: | llvm-mc -filetype=obj -triple=x86_64-unknown-linux - -o %t 4# RUN: ld.lld -o %t1 --script %s %t -shared 5# RUN: llvm-objdump --section-headers -t %t1 | FileCheck %s 6 7SECTIONS { 8 . = SIZEOF_HEADERS; 9 abc : { foo = .; } 10 . = ALIGN(0x1000); 11 bar : { *(bar) } 12} 13 14# CHECK: Sections: 15# CHECK-NEXT: Idx Name Size VMA 16# CHECK-NEXT: 0 00000000 0000000000000000 17# CHECK: abc 00000000 [[ADDR:[0-9a-f]*]] 18# CHECK: bar 00000000 0000000000001000 19 20# CHECK: SYMBOL TABLE: 21# CHECK: [[ADDR]] g abc 0000000000000000 foo 22