blob: 45baf188d8d855700623665c74fc95ed89b76987 [file] [log] [blame]
/*
Test when all segments are marked as NONE.
RUN: yaml2obj -format=elf %p/Inputs/simple.o.yaml -o=%t.o
RUN: lld -flavor old-gnu -target x86_64 -T %s %t.o -static -o %t1
RUN: llvm-objdump -section-headers %t1 | FileCheck -check-prefix NONE-ALL-PHDRS %s
*/
ENTRY(_start)
PHDRS
{
text PT_LOAD;
}
SECTIONS
{
.text : { *(.text) } :NONE
.data : { *(.data) }
}
/*
NONE-ALL-PHDRS: .text {{[0-9a-f]+}} 0000000000000000
NONE-ALL-PHDRS: .data {{[0-9a-f]+}} 000000000000002c
*/