brintos

brintos / llvm-project-archived public Read only

0
0
Text · 750 B · aa1a3ac Raw
26 lines · plain
1# REQUIRES: x862# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o3 4# RUN: echo "SECTIONS { .foo 0 : {*(foo)} }" > %t.script5# RUN: ld.lld --hash-style=sysv -o %t --script %t.script %t.o -shared6# RUN: llvm-readelf -S -l %t | FileCheck %s7 8# Test that we create all necessary PT_LOAD. We use to stop at the first9# non-alloc, causing us to not create PT_LOAD for linker generated sections.10 11# CHECK: Program Headers:12# CHECK-NEXT:  Type13# CHECK-NEXT:  LOAD {{.*}} R14# CHECK-NEXT:  LOAD {{.*}} R E15# CHECK-NEXT:  LOAD {{.*}} RW16 17# CHECK:      Section to Segment mapping:18# CHECK-NEXT:  Segment Sections...19# CHECK-NEXT:   00     .dynsym .hash .dynstr20# CHECK-NEXT:   01     .text21# CHECK-NEXT:   02     .dynamic22 23nop24.section foo25.quad 026