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