1 /***********************************************************************/
3 /* ROM.ld: Linker Script File */
5 /***********************************************************************/
8 INCLUDE "lpc2148.ld-cfg"
12 PROVIDE (_setup_board = 0);
14 /* Section Definitions */
18 /* first section is .text which is used for code */
28 *(.text .stub .text.* .gnu.linkonce.t.*) /* code */
29 *(.rodata .rodata.* .gnu.linkonce.r.*) /* read-only data */
41 PROVIDE (_mem_app_start = . );
46 PROVIDE (_keyval_start = .);
47 PROVIDE (_keyval_page_len = KEYVAL_PAGE_LEN );
50 /* .data section which is used for initialized data */
51 /* .data : AT (_etext)
\r*/
53 AT ( ADDR( .text ) + SIZEOF( .text ) )
57 *(.data .data.* .gnu.linkonce.d.*)
62 /* .bss section which is used for uninitialized data */
81 /* Stabs debugging sections. */
82 .stab 0 : { *(.stab) }
83 .stabstr 0 : { *(.stabstr) }
84 .stab.excl 0 : { *(.stab.excl) }
85 .stab.exclstr 0 : { *(.stab.exclstr) }
86 .stab.index 0 : { *(.stab.index) }
87 .stab.indexstr 0 : { *(.stab.indexstr) }
88 .comment 0 : { *(.comment) }
89 /* DWARF debug sections.
90 Symbols in the DWARF debugging sections are relative to the beginning
91 of the section so we begin them at 0. */
93 .debug 0 : { *(.debug) }
94 .line 0 : { *(.line) }
95 /* GNU DWARF 1 extensions */
96 .debug_srcinfo 0 : { *(.debug_srcinfo) }
97 .debug_sfnames 0 : { *(.debug_sfnames) }
98 /* DWARF 1.1 and DWARF 2 */
99 .debug_aranges 0 : { *(.debug_aranges) }
100 .debug_pubnames 0 : { *(.debug_pubnames) }
102 .debug_info 0 : { *(.debug_info .gnu.linkonce.wi.*) }
103 .debug_abbrev 0 : { *(.debug_abbrev) }
104 .debug_line 0 : { *(.debug_line) }
105 .debug_frame 0 : { *(.debug_frame) }
106 .debug_str 0 : { *(.debug_str) }
107 .debug_loc 0 : { *(.debug_loc) }
108 .debug_macinfo 0 : { *(.debug_macinfo) }
109 /* SGI/MIPS DWARF 2 extensions */
110 .debug_weaknames 0 : { *(.debug_weaknames) }
111 .debug_funcnames 0 : { *(.debug_funcnames) }
112 .debug_typenames 0 : { *(.debug_typenames) }
113 .debug_varnames 0 : { *(.debug_varnames) }