source: svn/trunk/newcon3bcm2_21bu/dta/src/bootloader/bootloader2s.script @ 2

Last change on this file since 2 was 2, checked in by phkim, 11 years ago

1.phkim

  1. revision copy newcon3sk r27
  • Property svn:executable set to *
File size: 1.6 KB
Line 
1OUTPUT_ARCH(mips)
2ENTRY(__start)
3/* Flash is located at 0xb8c00000 when boot_rom_enable=1 */
4flash_start = 0x98c00000;
5
6MEMORY
7{
8        FLASH(R)        : ORIGIN = 0x98c00000, LENGTH = 0x0007C000
9        RAM(RW)         : ORIGIN = (0x80000000+0x01000000), LENGTH = (0x2000000-((0x80000000+0x01000000)-0x80000000))
10        S2_RAM(RW): ORIGIN = (0x80100000), LENGTH = (0x16000)
11}
12
13SECTIONS
14{
15        .stage1 :       AT ( flash_start )
16        {
17                bootloader_s1l.o(.text)
18                bootloader_s1l.o(.text.*)
19                bootloader_s1l.o(.rodata)
20                bootloader_s1l.o(.rodata1)
21                bootloader_s1l.o(.rodata.str1.4)
22                bootloader_s1l.o(.rodata.cst4)
23                bootloader_s1l.o(.rodata.cst8)
24                bootloader_s1l.o(.fini)
25                bootloader_s1l.o(.reginfo)
26                . = ALIGN(0x40);
27        } > FLASH
28       
29        .text : AT ( LOADADDR(.stage1) + SIZEOF(.stage1) )
30        {
31                _ftext = .;
32                *(.text)
33                *(.text.*)
34                *(.rodata)
35                *(.rodata1)
36                *(.rodata.str1.4)
37                *(.rodata.cst4)
38                *(.rodata.cst8)
39                *(.fini)
40                *(.reginfo)
41                . = ALIGN(0x40);
42        } > S2_RAM
43        _etext = ( LOADADDR(.text) + SIZEOF(.text) );
44        etext = ( LOADADDR(.text) + SIZEOF(.text) );
45       
46        .data : AT (_etext)
47        {
48                _fdata = .;
49                *(data)
50                SORT(CONSTRUCTORS)
51                . = ALIGN(0x40);
52        } > RAM
53
54       
55        _edata  =  .;
56        _fbss = .;
57        _stage2_start = LOADADDR(.text);
58        _stage2_size = ( LOADADDR(.data) + SIZEOF(.data) - LOADADDR(.text));
59        _bootloader_size = LOADADDR(.data) + SIZEOF(.data) - LOADADDR(.stage1);
60
61        _ram_image_start = flash_start + 0x20000;
62        _ram_image2_start = _ram_image_start + (29 * 0x10000);
63
64        .sbss (NOLOAD) :
65        {
66                *(.sbss)
67                *(.scommon)
68        }
69       
70        .bss (NOLOAD) :
71        {
72                _bss_start = .;
73                *(.bss)
74                *(COMMON)
75                . = ALIGN(4);
76        } > RAM
77       
78        . = ALIGN(4);
79        _end = .;
80        PROVIDE(_end = .);
81        end = .;
82        PROVIDE(end = .);
83}
Note: See TracBrowser for help on using the repository browser.