1# REQUIRES: x86 2# RUN: echo '.section foo, "a"; .byte 0' \ 3# RUN: | llvm-mc -filetype=obj -triple=x86_64-unknown-linux - -o %t.o 4 5# RUN: ld.lld -o %t1 --script %s %t.o -shared 6# RUN: llvm-objdump --section-headers %t1 | FileCheck %s 7 8SECTIONS { 9 . = SIZEOF_HEADERS; 10 abc : {} 11 . = ALIGN(0x1000); 12 foo : { *(foo) } 13} 14 15# CHECK: Sections: 16# CHECK-NEXT: Idx Name Size VMA 17# CHECK-NEXT: 0 00000000 0000000000000000 18# CHECK-NEXT: 1 .dynsym 00000018 00000000000001c8 19# CHECK-NEXT: 2 .gnu.hash 0000001c 00000000000001e0 20# CHECK-NEXT: 3 .hash 00000010 00000000000001fc 21# CHECK-NEXT: 4 .dynstr 00000001 000000000000020c 22# CHECK-NEXT: 5 foo 00000001 0000000000001000 23