1 /***********************************************************************/
3 /* ROM.ld: Linker Script File */
5 /***********************************************************************/
8 INCLUDE "lpc2148.ld-cfg"
12 PROVIDE (_setup_board = 0);
13 PROVIDE (_mem_app_start = 0);
15 /* Section Definitions */
19 /* first section is .text which is used for code */
23 *(.text) /* main code */
24 *(.stub .text.* .gnu.linkonce.t.*) /* remaining code */
25 *(.rodata .rodata.* .gnu.linkonce.r.*) /* read-only data */
37 PROVIDE (_keyval_start = .);
38 PROVIDE (_keyval_page_len = KEYVAL_PAGE_LEN );
41 /* .data section which is used for initialized data */
42 /* .data : AT (_etext)
\r*/
44 AT ( ADDR( .text ) + SIZEOF( .text ) )
50 *(.data .data.* .gnu.linkonce.d.*)
55 /* .bss section which is used for uninitialized data */
74 /* Stabs debugging sections. */
75 .stab 0 : { *(.stab) }
76 .stabstr 0 : { *(.stabstr) }
77 .stab.excl 0 : { *(.stab.excl) }
78 .stab.exclstr 0 : { *(.stab.exclstr) }
79 .stab.index 0 : { *(.stab.index) }
80 .stab.indexstr 0 : { *(.stab.indexstr) }
81 .comment 0 : { *(.comment) }
82 /* DWARF debug sections.
83 Symbols in the DWARF debugging sections are relative to the beginning
84 of the section so we begin them at 0. */
86 .debug 0 : { *(.debug) }
87 .line 0 : { *(.line) }
88 /* GNU DWARF 1 extensions */
89 .debug_srcinfo 0 : { *(.debug_srcinfo) }
90 .debug_sfnames 0 : { *(.debug_sfnames) }
91 /* DWARF 1.1 and DWARF 2 */
92 .debug_aranges 0 : { *(.debug_aranges) }
93 .debug_pubnames 0 : { *(.debug_pubnames) }
95 .debug_info 0 : { *(.debug_info .gnu.linkonce.wi.*) }
96 .debug_abbrev 0 : { *(.debug_abbrev) }
97 .debug_line 0 : { *(.debug_line) }
98 .debug_frame 0 : { *(.debug_frame) }
99 .debug_str 0 : { *(.debug_str) }
100 .debug_loc 0 : { *(.debug_loc) }
101 .debug_macinfo 0 : { *(.debug_macinfo) }
102 /* SGI/MIPS DWARF 2 extensions */
103 .debug_weaknames 0 : { *(.debug_weaknames) }
104 .debug_funcnames 0 : { *(.debug_funcnames) }
105 .debug_typenames 0 : { *(.debug_typenames) }
106 .debug_varnames 0 : { *(.debug_varnames) }