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