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