]> rtime.felk.cvut.cz Git - lincan.git/blob - embedded/board/arm/ul_usb1/libs/ldscripts/lpc2105.ld-flash
Update of system-less architecture and board support code to actual uLAN.sf.net version.
[lincan.git] / embedded / board / arm / ul_usb1 / libs / ldscripts / lpc2105.ld-flash
1 /***********************************************************************/
2 /*                                                                     */
3 /*  ROM.ld:  Linker Script File                                        */
4 /*                                                                     */
5 /***********************************************************************/
6 ENTRY(_startup)
7
8 INCLUDE "lpc2105.ld-cfg"
9
10 STARTUP(startup.o) 
11
12 PROVIDE (_setup_board = 0);
13 PROVIDE (_mem_app_start = 0);
14
15 /* Section Definitions */
16 SECTIONS
17 {
18
19   /* first section is .text which is used for code */
20   .text :
21   {
22     . = ALIGN(4);
23     *(.ivt)
24     *(.text .stub .text.* .gnu.linkonce.t.*)    /* code */
25     *(.rodata .rodata.* .gnu.linkonce.r.*)      /* read-only data */
26     *(.rodata*)
27     *(.glue_7)
28     *(.glue_7t)
29     . = ALIGN( 4 ) ;
30     _etext = . ;
31   } > FLASH
32
33   /* .data section which is used for initialized data */
34 /*  .data : AT (_etext)\r*/
35   .data :
36           AT ( ADDR( .text ) + SIZEOF( .text ) )
37   {
38     . = ALIGN(4);
39     _data = .;
40     *(.data .data.* .gnu.linkonce.d.*)
41     . = ALIGN( 4 ) ;
42     _edata = . ;
43   } > RAM
44  
45   /* .bss section which is used for uninitialized data */
46   .bss (NOLOAD) :
47   {
48     . = ALIGN(4);
49     __bss_start = . ;
50     __bss_start__ = . ;
51     *(.bss .bss.*)
52     *(COMMON)
53     . = ALIGN( 4 ) ;
54     __bss_end__ = . ;
55     end = . ;
56     _end = . ;
57   } > RAM
58
59   .stack :
60   {
61     _stack = .;
62   } > STACK
63
64   /* Stabs debugging sections.  */
65   .stab          0 : { *(.stab) }
66   .stabstr       0 : { *(.stabstr) }
67   .stab.excl     0 : { *(.stab.excl) }
68   .stab.exclstr  0 : { *(.stab.exclstr) }
69   .stab.index    0 : { *(.stab.index) }
70   .stab.indexstr 0 : { *(.stab.indexstr) }
71   .comment       0 : { *(.comment) }
72   /* DWARF debug sections.
73      Symbols in the DWARF debugging sections are relative to the beginning
74      of the section so we begin them at 0.  */
75   /* DWARF 1 */
76   .debug          0 : { *(.debug) }
77   .line           0 : { *(.line) }
78   /* GNU DWARF 1 extensions */
79   .debug_srcinfo  0 : { *(.debug_srcinfo) }
80   .debug_sfnames  0 : { *(.debug_sfnames) }
81   /* DWARF 1.1 and DWARF 2 */
82   .debug_aranges  0 : { *(.debug_aranges) }
83   .debug_pubnames 0 : { *(.debug_pubnames) }
84   /* DWARF 2 */
85   .debug_info     0 : { *(.debug_info .gnu.linkonce.wi.*) }
86   .debug_abbrev   0 : { *(.debug_abbrev) }
87   .debug_line     0 : { *(.debug_line) }
88   .debug_frame    0 : { *(.debug_frame) }
89   .debug_str      0 : { *(.debug_str) }
90   .debug_loc      0 : { *(.debug_loc) }
91   .debug_macinfo  0 : { *(.debug_macinfo) }
92   /* SGI/MIPS DWARF 2 extensions */
93   .debug_weaknames 0 : { *(.debug_weaknames) }
94   .debug_funcnames 0 : { *(.debug_funcnames) }
95   .debug_typenames 0 : { *(.debug_typenames) }
96   .debug_varnames  0 : { *(.debug_varnames) }
97 }