OpenCores
URL https://opencores.org/ocsvn/hf-risc/hf-risc/trunk

Subversion Repositories hf-risc

[/] [hf-risc/] [trunk/] [software/] [lib/] [mips/] [hf-risc_bootloader.ld] - Blame information for rev 13

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 13 serginhofr
ENTRY(_entry)
2
 
3
/* specify HF-RISC memory areas */
4
 
5
MEMORY
6
{
7
rom             : ORIGIN = 0x00000000, LENGTH = 256M    /* ROM area*/
8
ram             : ORIGIN = 0x40000000, LENGTH = 256M    /* RAM area. */
9
ram_top         : ORIGIN = 0x4ffffc00, LENGTH = 0x400   /* RAM area. 1KB reserved for the bootloader .bss + stack */
10
}
11
 
12
/* define a global symbol _stack on top of RAM. */
13
 
14
_stack = 0x4ffffffc;
15
 
16
/* now define the output sections  */
17
 
18
SECTIONS
19
{
20
        . = 0;
21
 
22
        .text :
23
        {
24
                _text = .;
25
                *(.text)
26
                *(.text.*)
27
                _etext = .;
28
        } > rom
29
 
30
        .rodata :
31
        {
32
                _rodata = .;
33
                *(.rodata)
34
                *(.rodata.*)
35
                _erodata = .;
36
        } > rom
37
/* TODO: copy .data to RAM */
38
/* now, we just don't generate globals, so we can safely remove the .data section */
39
/*
40
        .data :
41
        {
42
                _data = .;
43
                *(.data)
44
                *(.data.*)
45
                _edata = .;
46
        } > ram
47
*/
48
/* the .bss section must be defined in RAM. we don't need to initialize it though. */
49
        .bss :
50
        {
51
                _bss_start = .;
52
                *(.bss)
53
        } > ram_top
54
 
55
        . = ALIGN(4);
56
        _bss_end = . ;
57
}
58
        _end = .;
59
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.