1 /***********************************************************************/
3 /* ROM.ld: Linker Script File */
5 /***********************************************************************/
8 INCLUDE "lpc2103.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 */
24 *(.text .stub .text.* .gnu.linkonce.t.*) /* code */
25 *(.rodata .rodata.* .gnu.linkonce.r.*) /* read-only data */
33 /* .data section which is used for initialized data */
34 /* .data : AT (_etext)
\r*/
36 AT ( ADDR( .text ) + SIZEOF( .text ) )
40 *(.data .data.* .gnu.linkonce.d.*)
45 /* .bss section which is used for uninitialized data */
65 /* Stabs debugging sections. */
66 .stab 0 : { *(.stab) }
67 .stabstr 0 : { *(.stabstr) }
68 .stab.excl 0 : { *(.stab.excl) }
69 .stab.exclstr 0 : { *(.stab.exclstr) }
70 .stab.index 0 : { *(.stab.index) }
71 .stab.indexstr 0 : { *(.stab.indexstr) }
72 .comment 0 : { *(.comment) }
73 /* DWARF debug sections.
74 Symbols in the DWARF debugging sections are relative to the beginning
75 of the section so we begin them at 0. */
77 .debug 0 : { *(.debug) }
78 .line 0 : { *(.line) }
79 /* GNU DWARF 1 extensions */
80 .debug_srcinfo 0 : { *(.debug_srcinfo) }
81 .debug_sfnames 0 : { *(.debug_sfnames) }
82 /* DWARF 1.1 and DWARF 2 */
83 .debug_aranges 0 : { *(.debug_aranges) }
84 .debug_pubnames 0 : { *(.debug_pubnames) }
86 .debug_info 0 : { *(.debug_info .gnu.linkonce.wi.*) }
87 .debug_abbrev 0 : { *(.debug_abbrev) }
88 .debug_line 0 : { *(.debug_line) }
89 .debug_frame 0 : { *(.debug_frame) }
90 .debug_str 0 : { *(.debug_str) }
91 .debug_loc 0 : { *(.debug_loc) }
92 .debug_macinfo 0 : { *(.debug_macinfo) }
93 /* SGI/MIPS DWARF 2 extensions */
94 .debug_weaknames 0 : { *(.debug_weaknames) }
95 .debug_funcnames 0 : { *(.debug_funcnames) }
96 .debug_typenames 0 : { *(.debug_typenames) }
97 .debug_varnames 0 : { *(.debug_varnames) }