summaryrefslogtreecommitdiffstats
path: root/lld/test/old-elf/linkerscript/phdrs-all-none.test
blob: 45baf188d8d855700623665c74fc95ed89b76987 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/*
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
*/
OpenPOWER on IntegriCloud