source: svn/trunk/newcon3bcm2_21bu/dta/tests/basic/ld_basic.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: 860 bytes
Line 
1OUTPUT_ARCH(mips)
2ENTRY(start)
3
4MEMORY
5{
6        RAM_TEXT(RW)    : ORIGIN = 0x80016000, LENGTH = 0x01000000
7}
8
9SECTIONS
10{
11        .text :
12        {
13                _ftext = .;
14                *(.text)
15                *(.rodata)
16                *(.rodata*)
17                *(.fini)
18                *(.reginfo)
19                . = ALIGN(16);
20        } AT > RAM_TEXT
21        _etext = .;
22        etext = .;
23
24        .data :
25        {
26                _fdata = .;
27                *(.data)
28                SORT(CONSTRUCTORS)
29                . = ALIGN(4);
30        } AT > RAM_TEXT
31        _edata  =  .;
32        _fbss = .;
33
34    .test_bsp :
35    {
36        KEEP(*(.test_data))
37        KEEP(*(.test_sig))
38    } AT > RAM_TEXT
39    _test_bsp_start = LOADADDR(.test_bsp);
40    _test_bsp_size = SIZEOF(.test_bsp);
41    _test_bsp_vma = 0x82000000;
42
43        .sbss (NOLOAD) :
44        {
45                *(.sbss)
46                *(.scommon)
47                . = ALIGN(4);
48        } AT > RAM_TEXT
49
50        .bss (NOLOAD) :
51        {
52                _bss_start = .;
53                *(.bss)
54                *(COMMON)
55                . = ALIGN(4);
56        } AT > RAM_TEXT
57
58        . = ALIGN(4);
59        _end = .;
60        PROVIDE(_end = .);
61        end = .;
62        PROVIDE(end = .);
63        . = ALIGN(4);
64}
65
Note: See TracBrowser for help on using the repository browser.