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
9 # CHECK: Segment Sections...
10 # CHECK-NEXT: 00 .text
11 # CHECK-NEXT: 01 .foo .dynsym .hash .dynstr .dynamic
12 # CHECK-NEXT: 02 .foo .dynsym .hash .dynstr .dynamic
15 ph_write PT_LOAD FLAGS(2);
16 ph_exec PT_LOAD FLAGS(1);
21 .text : { *(.text) } : ph_write
22 .bar : { *(.bar) } : ph_exec : ph_note