1 /***********************************************************************/
3 /* ROM.ld: Linker Script File */
5 /***********************************************************************/
8 INCLUDE "lpc2105.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)
54 AT ( ADDR( .text ) + SIZEOF( .text ) )
58 *(.data .data.* .gnu.linkonce.d.*)
63 /* .bss section which is used for uninitialized data */
82 /* Stabs debugging sections. */
83 .stab 0 : { *(.stab) }
84 .stabstr 0 : { *(.stabstr) }
85 .stab.excl 0 : { *(.stab.excl) }
86 .stab.exclstr 0 : { *(.stab.exclstr) }
87 .stab.index 0 : { *(.stab.index) }
88 .stab.indexstr 0 : { *(.stab.indexstr) }
89 .comment 0 : { *(.comment) }
90 /* DWARF debug sections.
91 Symbols in the DWARF debugging sections are relative to the beginning
92 of the section so we begin them at 0. */
94 .debug 0 : { *(.debug) }
95 .line 0 : { *(.line) }
96 /* GNU DWARF 1 extensions */
97 .debug_srcinfo 0 : { *(.debug_srcinfo) }
98 .debug_sfnames 0 : { *(.debug_sfnames) }
99 /* DWARF 1.1 and DWARF 2 */
100 .debug_aranges 0 : { *(.debug_aranges) }
101 .debug_pubnames 0 : { *(.debug_pubnames) }
103 .debug_info 0 : { *(.debug_info .gnu.linkonce.wi.*) }
104 .debug_abbrev 0 : { *(.debug_abbrev) }
105 .debug_line 0 : { *(.debug_line) }
106 .debug_frame 0 : { *(.debug_frame) }
107 .debug_str 0 : { *(.debug_str) }
108 .debug_loc 0 : { *(.debug_loc) }
109 .debug_macinfo 0 : { *(.debug_macinfo) }
110 /* SGI/MIPS DWARF 2 extensions */
111 .debug_weaknames 0 : { *(.debug_weaknames) }
112 .debug_funcnames 0 : { *(.debug_funcnames) }
113 .debug_typenames 0 : { *(.debug_typenames) }
114 .debug_varnames 0 : { *(.debug_varnames) }