1# REQUIRES: x86 2# RUN: echo '.section .zed, "a"; .zero 4' \ 3# RUN: | llvm-mc -filetype=obj -triple=x86_64-unknown-linux - -o %t.o 4# RUN: ld.lld --script %s %t.o -o %t 5# RUN: llvm-readelf -S -l -W %t | FileCheck %s 6 7# CHECK: [ 1] .abc PROGBITS 0000000000001000 001000 000004 00 A 0 0 1 8# CHECK: LOAD 0x000000 0x0000000000000000 0x0000000000000000 0x001004 0x001004 R E 0x1000 9 10PHDRS { foobar PT_LOAD FILEHDR PHDRS; } 11 12SECTIONS { 13 . = 0x1000; 14 .abc : { *(.zed) } : foobar 15} 16