brintos

brintos / llvm-project-archived public Read only

0
0
Text · 670 B · 3909c6a Raw
25 lines · plain
1# REQUIRES: x862 3# RUN: echo '.section .text,"ax"; .quad 0' > %t.s4# RUN: echo '.section .foo,"ax"; .quad 0' >> %t.s5# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %t.s -o %t.o6# RUN: ld.lld --hash-style=sysv -o %t1 --script %s %t.o -shared7# RUN: llvm-readelf -l %t1 | FileCheck %s8 9# CHECK:      Segment Sections...10# CHECK-NEXT:   00     .text11# CHECK-NEXT:   01     .foo .dynsym .hash .dynstr .dynamic12# CHECK-NEXT:   02     .foo .dynsym .hash .dynstr .dynamic13 14PHDRS {15  ph_write PT_LOAD FLAGS(2);16  ph_exec  PT_LOAD FLAGS(1);17  ph_note  PT_NOTE;18}19 20SECTIONS {21  .text : { *(.text) } : ph_write22  .bar : { *(.bar) } : ph_exec : ph_note23  .foo : { *(.foo) }24}25