Subversion Repositories freemyipod

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

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