27 lines
477 B
Plaintext
27 lines
477 B
Plaintext
/*
|
|
Test when all segments are marked as NONE.
|
|
|
|
RUN: yaml2obj -format=elf %p/Inputs/simple.o.yaml -o=%t.o
|
|
|
|
RUN: lld -flavor 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
|
|
*/
|