Subversion Repositories freemyipod

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 theseven 1
ENTRY(_start)
2
OUTPUT_FORMAT(elf32-littlearm)
3
OUTPUT_ARCH(arm)
4
STARTUP(build/ipodnano2g/target/ipodnano2g/crt0.o)
5
 
6
MEMORY
7
{
8
    INIT : ORIGIN = 0x08000000, LENGTH = 0x01f00000
9
    SRAM : ORIGIN = 0x22000000, LENGTH = 0x0002bdf0
10
    SDRAM : ORIGIN = 0x09f00000, LENGTH = 0x00100000
11
}
12
 
13
SECTIONS
14
{
15 theseven 15
    .init :
16
    {
35 theseven 17
        _initstart = .;
2 theseven 18
        *(.initcode*)
19
        *(.initrodata*)
20
        *(.initdata*)
21
        . = ALIGN(0x4);
35 theseven 22
        _initend = .;
2 theseven 23
    } > INIT
24
 
15 theseven 25
    .sram :
26
    {
2 theseven 27
        _sramstart = .;
28
        KEEP(*(.intvect))
29
        *(.intvect)
30
        *(.icode*)
31
        *(.irodata*)
32
        *(.idata*)
33
        . = ALIGN(0x4);
34
        _sramend = .;
35
    } > SRAM AT> INIT
15 theseven 36
    _sramsource = LOADADDR(.sram);
2 theseven 37
 
15 theseven 38
    .sdram :
2 theseven 39
    {
40
        _sdramstart = .;
41
        *(.text*)
42
        *(.glue_7)
43
        *(.glue_7t)
44
        . = ALIGN(0x4);
45
        *(.rodata*)
46
        . = ALIGN(0x4);
47
        *(.data*)
48
        . = ALIGN(0x4);
49
        _sdramend = .;
50
    } > SDRAM AT> INIT
15 theseven 51
    _sdramsource = LOADADDR(.sdram);
2 theseven 52
 
53
    .initbss (NOLOAD) :
54
    {
55
        _initbssstart = .;
56
        *(.initbss*)
57
        . = ALIGN(0x4);
58
        _initstackstart = .;
59
        . += 0x4000;
60
        _initstackend = .;
61
        _initbssend = .;
62
    } > INIT
63
 
64
    .ibss (NOLOAD) :
65
    {
66
        _ibssstart = .;
67
        *(.ibss*)
68
        . = ALIGN(0x4);
69
        _irqstackstart = .;
70
        . += 0x400;
71
        _irqstackend = .;
72
        _abortstackstart = .;
73
        . += 0x400;
74
        _abortstackend = .;
15 theseven 75
        *(.stack*)
2 theseven 76
        _ibssend = .;
77
    } > SRAM
78
 
79
    .bss (NOLOAD) :
80
    {
81
        _bssstart = .;
82
        *(.bss*)
83
        *(COMMON)
84
        . = ALIGN(0x4);
85
        _bssend = .;
86
    } > SDRAM
87
 
88
    /DISCARD/ :
89
    {
90
        *(.eh_frame)
91
    }
92
 
93
}