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
    {
2 theseven 17
        *(.initcode*)
18
        *(.initrodata*)
19
        *(.initdata*)
20
        . = ALIGN(0x4);
21
    } > INIT
22
 
15 theseven 23
    .sram :
24
    {
2 theseven 25
        _sramstart = .;
26
        KEEP(*(.intvect))
27
        *(.intvect)
28
        *(.icode*)
29
        *(.irodata*)
30
        *(.idata*)
31
        . = ALIGN(0x4);
32
        _sramend = .;
33
    } > SRAM AT> INIT
15 theseven 34
    _sramsource = LOADADDR(.sram);
2 theseven 35
 
15 theseven 36
    .sdram :
2 theseven 37
    {
38
        _sdramstart = .;
39
        *(.text*)
40
        *(.glue_7)
41
        *(.glue_7t)
42
        . = ALIGN(0x4);
43
        *(.rodata*)
44
        . = ALIGN(0x4);
45
        *(.data*)
46
        . = ALIGN(0x4);
47
        _sdramend = .;
48
    } > SDRAM AT> INIT
15 theseven 49
    _sdramsource = LOADADDR(.sdram);
2 theseven 50
 
51
    .initbss (NOLOAD) :
52
    {
53
        _initbssstart = .;
54
        *(.initbss*)
55
        . = ALIGN(0x4);
56
        _initstackstart = .;
57
        . += 0x4000;
58
        _initstackend = .;
59
        _initbssend = .;
60
    } > INIT
61
 
62
    .ibss (NOLOAD) :
63
    {
64
        _ibssstart = .;
65
        *(.ibss*)
66
        . = ALIGN(0x4);
67
        _irqstackstart = .;
68
        . += 0x400;
69
        _irqstackend = .;
70
        _abortstackstart = .;
71
        . += 0x400;
72
        _abortstackend = .;
15 theseven 73
        *(.stack*)
2 theseven 74
        _ibssend = .;
75
    } > SRAM
76
 
77
    .bss (NOLOAD) :
78
    {
79
        _bssstart = .;
80
        *(.bss*)
81
        *(COMMON)
82
        . = ALIGN(0x4);
83
        _bssend = .;
84
    } > SDRAM
85
 
86
    /DISCARD/ :
87
    {
88
        *(.eh_frame)
89
    }
90
 
91
}