brintos

brintos / llvm-project-archived public Read only

0
0
Text · 971 B · 7232495 Raw
25 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*)} .dynsym : {*(.dynsym)} .dynstr : {*(.dynstr)} }" > %t.script5# RUN: ld.lld --hash-style=sysv -o %t --script %t.script %t.o -shared6# RUN: llvm-readelf -l %t | FileCheck %s7 8# RUN: echo "SECTIONS {foo : {*(foo*)} .dynsym : { *(.dynsym) } .dynstr : { *(.dynstr) } }" > %t.script9# RUN: ld.lld --hash-style=sysv -o %t --script %t.script %t.o -shared10# RUN: llvm-readelf -l %t | FileCheck %s11 12# There is not enough address space available for the header, so just start the PT_LOAD13# after it. Don't create a PT_PHDR as the header is not allocated.14 15# CHECK: Program Headers:16# CHECK-NEXT: Type  Offset   VirtAddr           PhysAddr17# CHECK-NEXT: LOAD  0x001000 0x0000000000000000 0x000000000000000018 19# CHECK:      Section to Segment mapping:20# CHECK-NEXT:  Segment Sections...21# CHECK-NEXT:   00     foo .dynsym .dynstr .hash22 23.section foo, "a"24.quad 025