]> rtime.felk.cvut.cz Git - lincan.git/blob - embedded/board/arm/ul_usb1/libs/ldscripts/lpc2105.ld-boot
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-boot
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
14 /* Section Definitions */
15 SECTIONS
16 {
17
18   /* first section is .text which is used for code */
19   .ivt :
20   {
21     . = ALIGN(4);
22     KEEP( *(.ivt) )
23   } > FLASHBOOT
24
25   .text :
26   {
27     . = ALIGN(4);
28     *(.text .stub .text.* .gnu.linkonce.t.*)    /* code */
29     *(.rodata .rodata.* .gnu.linkonce.r.*)      /* read-only data */
30     *(.rodata*)
31     *(.glue_7t)
32     *(.glue_7)
33     *(.vfp11_veneer)
34     *(.v4_bx)
35     . = ALIGN( 4 ) ;
36     _etext = . ;
37   } > FLASHBOOT
38
39   .app :
40   {
41     PROVIDE (_mem_app_start = . );
42   } > FLASHAPP
43
44   .keyval :
45   {
46     PROVIDE (_keyval_start = .);
47     PROVIDE (_keyval_page_len = KEYVAL_PAGE_LEN );
48   }> KEYVAL
49
50   /* .data section which is used for initialized data */
51 /*  .data : AT (_etext)
52 */
53   .data :
54           AT ( ADDR( .text ) + SIZEOF( .text ) )
55   {
56     . = ALIGN(4);
57     _data = .;
58     *(.data .data.* .gnu.linkonce.d.*)
59     . = ALIGN( 4 ) ;
60     _edata = . ;
61   } > RAM
62  
63   /* .bss section which is used for uninitialized data */
64   .bss (NOLOAD) :
65   {
66     . = ALIGN(4);
67     __bss_start = . ;
68     __bss_start__ = . ;
69     *(.bss .bss.*)
70     *(COMMON)
71     . = ALIGN( 4 ) ;
72     __bss_end__ = . ;
73     end = . ;
74     _end = . ;
75   } > RAM
76
77   .stack :
78   {
79     _stack = .;
80   } > STACK
81
82   /* Stabs debugging sections.  */
83   .stab          0 : { *(.stab) }
84   .stabstr       0 : { *(.stabstr) }
85   .stab.excl     0 : { *(.stab.excl) }
86   .stab.exclstr  0 : { *(.stab.exclstr) }
87   .stab.index    0 : { *(.stab.index) }
88   .stab.indexstr 0 : { *(.stab.indexstr) }
89   .comment       0 : { *(.comment) }
90   /* DWARF debug sections.
91      Symbols in the DWARF debugging sections are relative to the beginning
92      of the section so we begin them at 0.  */
93   /* DWARF 1 */
94   .debug          0 : { *(.debug) }
95   .line           0 : { *(.line) }
96   /* GNU DWARF 1 extensions */
97   .debug_srcinfo  0 : { *(.debug_srcinfo) }
98   .debug_sfnames  0 : { *(.debug_sfnames) }
99   /* DWARF 1.1 and DWARF 2 */
100   .debug_aranges  0 : { *(.debug_aranges) }
101   .debug_pubnames 0 : { *(.debug_pubnames) }
102   /* DWARF 2 */
103   .debug_info     0 : { *(.debug_info .gnu.linkonce.wi.*) }
104   .debug_abbrev   0 : { *(.debug_abbrev) }
105   .debug_line     0 : { *(.debug_line) }
106   .debug_frame    0 : { *(.debug_frame) }
107   .debug_str      0 : { *(.debug_str) }
108   .debug_loc      0 : { *(.debug_loc) }
109   .debug_macinfo  0 : { *(.debug_macinfo) }
110   /* SGI/MIPS DWARF 2 extensions */
111   .debug_weaknames 0 : { *(.debug_weaknames) }
112   .debug_funcnames 0 : { *(.debug_funcnames) }
113   .debug_typenames 0 : { *(.debug_typenames) }
114   .debug_varnames  0 : { *(.debug_varnames) }
115 }