summaryrefslogtreecommitdiffstats
path: root/ape/ape.ld
blob: eb88bf376363cbd4558907bb48b14c2712ccfde9 (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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
OUTPUT_FORMAT(binary)
ENTRY(__start)

SECTIONS
{
    .text 0x00100000 : ALIGN(4) SUBALIGN(4)
    {
        KEEP(*(.init))
        *(.text)
    }


    .data . : ALIGN(4) SUBALIGN(4)
    {
        *(.data*)
        *(.rodata*)
    }

    _fbss = .;
    .bss . : ALIGN(4) SUBALIGN(4)
    {
        *(.bss*)
    }
    _ebss = .;


    .stack . (NOLOAD) : ALIGN(4) SUBALIGN(4)
    {
        _fstack = .;
        _estack = 0x00118000;
    }


    /DISCARD/ :
    {
        *(.comment)
        *(.note.GNU-stack)
        *(.eh_frame)
        *(.got)
        *(.ARM.exidx*)
        *(.reginfo)
        *(.mdebug.abi32)
        *(.pdr)
    }
}

OpenPOWER on IntegriCloud