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