1# REQUIRES: x86
2# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t
3
4# RUN: echo "SECTIONS { . = 0x10000000 + SIZEOF_HEADERS; .text : {*(.text.*)} }" > %t.script
5# RUN: ld.lld -o %t1 --script %t.script %t
6# RUN: llvm-readobj -l %t1 | FileCheck %s
7# CHECK:      ProgramHeaders [
8# CHECK-NEXT:  ProgramHeader {
9# CHECK-NEXT:    Type: PT_PHDR (0x6)
10# CHECK-NEXT:    Offset: 0x40
11# CHECK-NEXT:    VirtualAddress: 0x10000040
12
13.global _start
14_start:
15 nop
16