1# REQUIRES: x86 2 3# RUN: echo '.section .text,"ax"; .quad 0' > %t.s 4# RUN: echo '.section .foo,"ax"; .quad 0' >> %t.s 5# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %t.s -o %t.o 6# RUN: ld.lld --hash-style=sysv -o %t1 --script %s %t.o -shared 7# RUN: llvm-readelf -l %t1 | FileCheck %s 8 9# CHECK: Segment Sections... 10# CHECK-NEXT: 00 .dynsym .hash .dynstr .foo .text .dynamic 11# CHECK-NEXT: 01 .foo 12# CHECK-NEXT: 02 .foo 13 14PHDRS { 15 ph_write PT_LOAD FLAGS(2); 16 ph_exec PT_LOAD FLAGS(1); 17 ph_note PT_NOTE; 18} 19 20SECTIONS { 21 .bar : { *(.bar) } : ph_exec : ph_note 22 .foo : { *(.foo) } 23 .text : { *(.text) } : ph_write 24} 25