Subversion Repositories freemyipod

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
273 theseven 1
ENTRY(__start)
2
OUTPUT_FORMAT(elf32-littlearm)
3
OUTPUT_ARCH(arm)
4
STARTUP(build/ipodclassic/target/ipodclassic/crt0.o)
5
 
6
MEMORY
7
{
815 theseven 8
    INIT : ORIGIN = 0x08000000, LENGTH = 0x03fc0000
273 theseven 9
    SRAM : ORIGIN = 0x22000000, LENGTH = 0x0003c000
815 theseven 10
    SDRAM : ORIGIN = 0x0bfc0000, LENGTH = 0x00040000
273 theseven 11
}
12
 
13
SECTIONS
14
{
436 theseven 15
    .inithead :
273 theseven 16
    {
436 theseven 17
        _initheadstart = .;
18
        _poolstart = .;
273 theseven 19
	*(.inithead*)
20
        . = ALIGN(0x4);
436 theseven 21
        _initheadend = .;
273 theseven 22
    } > INIT
23
 
24
    .sram :
25
    {
26
        _sramstart = .;
27
        KEEP(*(.intvect))
28
        *(.intvect)
29
        *(.icode*)
30
        *(.irodata*)
31
        *(.idata*)
32
        . = ALIGN(0x4);
33
        _sramend = .;
34
    } > SRAM AT> INIT
35
    _sramsource = LOADADDR(.sram);
36
 
37
    .sdram :
38
    {
39
        _sdramstart = .;
436 theseven 40
        _poolend = .;
273 theseven 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
51
    _sdramsource = LOADADDR(.sdram);
52
 
436 theseven 53
    .init :
273 theseven 54
    {
436 theseven 55
        _initstart = .;
56
        *(.initcode*)
57
        *(.initrodata*)
58
        *(.initdata*)
273 theseven 59
        . = ALIGN(0x4);
436 theseven 60
        _initend = .;
61
    } > INIT
273 theseven 62
 
437 theseven 63
    .inittail :
64
    {
65
        _inittailstart = .;
66
        *(.inittail*)
67
        . = ALIGN(0x4);
68
        _inittailend = .;
69
    } > INIT
70
 
273 theseven 71
    .ibss (NOLOAD) :
72
    {
73
        _ibssstart = .;
74
        *(.ibss*)
75
        . = ALIGN(0x4);
573 theseven 76
        _abortstackstart = .;
77
        . += 0x400;
78
        _abortstackend = .;
273 theseven 79
        _irqstackstart = .;
80
        . += 0x400;
81
        _irqstackend = .;
82
        *(.stack*)
436 theseven 83
        . = ALIGN(0x4);
273 theseven 84
        _ibssend = .;
85
    } > SRAM
86
 
87
    .bss (NOLOAD) :
88
    {
89
        _bssstart = .;
90
        *(.bss*)
91
        *(COMMON)
92
        . = ALIGN(0x4);
93
        _bssend = .;
94
    } > SDRAM
95
 
96
    /DISCARD/ :
97
    {
98
        *(.eh_frame)
99
    }
100
 
101
}