source: svn/trunk/newcon3bcm2_21bu/dta/src/bootloader7574/bootloader2s.script @ 28

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

1.phkim

  1. revision copy newcon3sk r27
  • Property svn:executable set to *
File size: 1.7 KB
Line 
1OUTPUT_ARCH(mips)
2ENTRY(__start)
3/* Flash is located at 0xb8c00000 when boot_rom_enable=1 */
4flash_start = 0x9fc00000;
5
6MEMORY
7{
8        FLASH(R)        : ORIGIN = 0x9fc00000, LENGTH = 0x0007C000
9        RAM(RW)         : ORIGIN = (0x80000000+0x02000000), LENGTH = (0x2000000-((0x80000000+0x01000000)-0x80000000))
10        S2_RAM(RW): ORIGIN = (0x80001000), 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                . = ALIGN(0x40);
26        } > FLASH
27        .bsec :
28        {
29                __bsp_key0 = .;
30                KEEP(*(.bsec_key0))
31                __bsp_fw = .;
32                KEEP(*(.bsec_fw))
33                . = ALIGN(0x40);
34        } > FLASH
35        __bsp_key0 &= 0x1fffffff;
36        __bsp_fw &= 0x1fffffff;
37        .text : AT ( LOADADDR(.bsec) + SIZEOF(.bsec) )
38        {
39                _ftext = .;
40                *(.text)
41                *(.text.*)
42                *(.rodata)
43                *(.rodata1)
44                *(.rodata.str1.4)
45                *(.rodata.cst4)
46                *(.rodata.cst8)
47                *(.fini)
48                . = ALIGN(0x40);
49        } > S2_RAM
50        _etext = ( LOADADDR(.text) + SIZEOF(.text) );
51        etext = ( LOADADDR(.text) + SIZEOF(.text) );
52       
53        .data : AT (_etext)
54        {
55                _fdata = .;
56                *(data)
57                SORT(CONSTRUCTORS)
58                . = ALIGN(0x40);
59        } > RAM
60
61       
62        _edata  =  .;
63        _fbss = .;
64        _stage2_start = LOADADDR(.text);
65        _stage2_size = ( LOADADDR(.data) + SIZEOF(.data) - LOADADDR(.text));
66        _bootloader_size = LOADADDR(.data) + SIZEOF(.data) - LOADADDR(.stage1);
67
68        _ram_image_start =  flash_start + 0x030000;
69        _ram_image2_start = flash_start + 0x400000;
70
71        .sbss (NOLOAD) :
72        {
73                *(.sbss)
74                *(.scommon)
75        }
76       
77        .bss (NOLOAD) :
78        {
79                _bss_start = .;
80                *(.bss)
81                *(COMMON)
82                . = ALIGN(4);
83        } > RAM
84       
85        . = ALIGN(4);
86        _end = .;
87        PROVIDE(_end = .);
88        end = .;
89        PROVIDE(end = .);
90}
Note: See TracBrowser for help on using the repository browser.