aboutsummaryrefslogtreecommitdiff
path: root/PL0_test.ld
blob: 430e0986ecf4ecb4885a0c4b09e5f4aac46d5f1c (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
ENTRY(_start)
 
SECTIONS
{
    /* 0b10101010101000000000000000000000 */
    . = 0xaaa00000;
    __start = .;
    __text_start = .;
    .text :
    {
        /* have entry point at the beginning */
        KEEP(*(.text.PL0main))
        *(.text)
    }
    . = ALIGN(4096); /* align to page size */
    __text_end = .;
 
    __rodata_start = .;
    .rodata :
    {
        *(.rodata)
    }
    . = ALIGN(4096); /* align to page size */
    __rodata_end = .;
 
    __data_start = .;
    .data :
    {
        *(.data)
    }
    . = ALIGN(4096); /* align to page size */
    __data_end = .;
 
    __bss_start = .;
    .bss :
    {
        bss = .;
        *(.bss)
    }
    . = ALIGN(4096); /* align to page size */
    __bss_end = .;
    __bss_size = __bss_end - __bss_start;
    __end = .;
}