1 /* Default linker script, for normal executables */
2 OUTPUT_FORMAT("elf32-avr","elf32-avr","elf32-avr")
6 text (rx) : ORIGIN = 0, LENGTH = 1024K
7 data (rw!x) : ORIGIN = 0x800200, LENGTH = 0xfe00
8 eeprom (rw!x) : ORIGIN = 0x810000, LENGTH = 64K
9 fuse (rw!x) : ORIGIN = 0x820000, LENGTH = 1K
10 lock (rw!x) : ORIGIN = 0x830000, LENGTH = 1K
11 signature (rw!x) : ORIGIN = 0x840000, LENGTH = 1K
15 /* Read-only sections, merged into text segment: */
17 .dynsym : { *(.dynsym) }
18 .dynstr : { *(.dynstr) }
19 .gnu.version : { *(.gnu.version) }
20 .gnu.version_d : { *(.gnu.version_d) }
21 .gnu.version_r : { *(.gnu.version_r) }
22 .rel.init : { *(.rel.init) }
23 .rela.init : { *(.rela.init) }
28 *(.rel.gnu.linkonce.t*)
34 *(.rela.gnu.linkonce.t*)
36 .rel.fini : { *(.rel.fini) }
37 .rela.fini : { *(.rela.fini) }
42 *(.rel.gnu.linkonce.r*)
48 *(.rela.gnu.linkonce.r*)
54 *(.rel.gnu.linkonce.d*)
60 *(.rela.gnu.linkonce.d*)
62 .rel.ctors : { *(.rel.ctors) }
63 .rela.ctors : { *(.rela.ctors) }
64 .rel.dtors : { *(.rel.dtors) }
65 .rela.dtors : { *(.rela.dtors) }
66 .rel.got : { *(.rel.got) }
67 .rela.got : { *(.rela.got) }
68 .rel.bss : { *(.rel.bss) }
69 .rela.bss : { *(.rela.bss) }
70 .rel.plt : { *(.rel.plt) }
71 .rela.plt : { *(.rela.plt) }
72 /* Internal text space or external memory. */
77 . = 256 + ALIGN(256); /* placeholder for misc microb infos */
78 /* For data that needs to reside in the lower 64k of progmem. */
82 __trampolines_start = . ;
83 /* The jump trampolines for the 16-bit limited relocs will reside here. */
86 __trampolines_end = . ;
87 /* For future tablejump instruction arrays for 3 byte pc devices.
88 We don't relax jump/call instructions within these sections. */
91 /* For code that needs to reside in the lower 128k progmem. */
100 KEEP(SORT(*)(.ctors))
101 KEEP(SORT(*)(.dtors))
102 /* From this point on, we don't bother about wether the insns are
103 below or above the 16 bits boundary. */
104 *(.init0) /* Start here after reset. */
108 *(.init2) /* Clear __zero_reg__, set up stack pointer. */
112 *(.init4) /* Initialize data and BSS. */
116 *(.init6) /* C++ constructors. */
122 *(.init9) /* Call main(). */
124 *(.text.*) /* trucs de gcc ? */
126 /* some libc stuff */
144 control_system*(.text)
168 *(.fini9) /* _exit() starts here. */
174 *(.fini6) /* C++ destructors. */
186 *(.fini0) /* Infinite loop after program termination. */
190 .data : AT (ADDR (.text) + SIZEOF (.text))
192 PROVIDE (__data_start = .) ;
195 *(.rodata) /* We need to include .rodata here if gcc is used */
196 *(.rodata*) /* with -fdata-sections. */
200 PROVIDE (__data_end = .) ;
202 .bss SIZEOF(.data) + ADDR(.data) :
204 PROVIDE (__bss_start = .) ;
208 PROVIDE (__bss_end = .) ;
210 __data_load_start = LOADADDR(.data);
211 __data_load_end = __data_load_start + SIZEOF(.data);
212 /* Global data not cleared after reset. */
213 .noinit SIZEOF(.bss) + ADDR(.bss) :
215 PROVIDE (__noinit_start = .) ;
217 PROVIDE (__noinit_end = .) ;
219 PROVIDE (__heap_start = .) ;
241 /* Stabs debugging sections. */
242 .stab 0 : { *(.stab) }
243 .stabstr 0 : { *(.stabstr) }
244 .stab.excl 0 : { *(.stab.excl) }
245 .stab.exclstr 0 : { *(.stab.exclstr) }
246 .stab.index 0 : { *(.stab.index) }
247 .stab.indexstr 0 : { *(.stab.indexstr) }
248 .comment 0 : { *(.comment) }
249 /* DWARF debug sections.
250 Symbols in the DWARF debugging sections are relative to the beginning
251 of the section so we begin them at 0. */
253 .debug 0 : { *(.debug) }
254 .line 0 : { *(.line) }
255 /* GNU DWARF 1 extensions */
256 .debug_srcinfo 0 : { *(.debug_srcinfo) }
257 .debug_sfnames 0 : { *(.debug_sfnames) }
258 /* DWARF 1.1 and DWARF 2 */
259 .debug_aranges 0 : { *(.debug_aranges) }
260 .debug_pubnames 0 : { *(.debug_pubnames) }
262 .debug_info 0 : { *(.debug_info) *(.gnu.linkonce.wi.*) }
263 .debug_abbrev 0 : { *(.debug_abbrev) }
264 .debug_line 0 : { *(.debug_line) }
265 .debug_frame 0 : { *(.debug_frame) }
266 .debug_str 0 : { *(.debug_str) }
267 .debug_loc 0 : { *(.debug_loc) }
268 .debug_macinfo 0 : { *(.debug_macinfo) }