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 */
148 *(.fini9) /* _exit() starts here. */
154 *(.fini6) /* C++ destructors. */
166 *(.fini0) /* Infinite loop after program termination. */
170 .data : AT (ADDR (.text) + SIZEOF (.text))
172 PROVIDE (__data_start = .) ;
175 *(.rodata) /* We need to include .rodata here if gcc is used */
176 *(.rodata*) /* with -fdata-sections. */
180 PROVIDE (__data_end = .) ;
182 .bss SIZEOF(.data) + ADDR(.data) :
184 PROVIDE (__bss_start = .) ;
188 PROVIDE (__bss_end = .) ;
190 __data_load_start = LOADADDR(.data);
191 __data_load_end = __data_load_start + SIZEOF(.data);
192 /* Global data not cleared after reset. */
193 .noinit SIZEOF(.bss) + ADDR(.bss) :
195 PROVIDE (__noinit_start = .) ;
197 PROVIDE (__noinit_end = .) ;
199 PROVIDE (__heap_start = .) ;
221 /* Stabs debugging sections. */
222 .stab 0 : { *(.stab) }
223 .stabstr 0 : { *(.stabstr) }
224 .stab.excl 0 : { *(.stab.excl) }
225 .stab.exclstr 0 : { *(.stab.exclstr) }
226 .stab.index 0 : { *(.stab.index) }
227 .stab.indexstr 0 : { *(.stab.indexstr) }
228 .comment 0 : { *(.comment) }
229 /* DWARF debug sections.
230 Symbols in the DWARF debugging sections are relative to the beginning
231 of the section so we begin them at 0. */
233 .debug 0 : { *(.debug) }
234 .line 0 : { *(.line) }
235 /* GNU DWARF 1 extensions */
236 .debug_srcinfo 0 : { *(.debug_srcinfo) }
237 .debug_sfnames 0 : { *(.debug_sfnames) }
238 /* DWARF 1.1 and DWARF 2 */
239 .debug_aranges 0 : { *(.debug_aranges) }
240 .debug_pubnames 0 : { *(.debug_pubnames) }
242 .debug_info 0 : { *(.debug_info) *(.gnu.linkonce.wi.*) }
243 .debug_abbrev 0 : { *(.debug_abbrev) }
244 .debug_line 0 : { *(.debug_line) }
245 .debug_frame 0 : { *(.debug_frame) }
246 .debug_str 0 : { *(.debug_str) }
247 .debug_loc 0 : { *(.debug_loc) }
248 .debug_macinfo 0 : { *(.debug_macinfo) }