Subversion Repositories HomeAutomation

Rev

Rev 223 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed

Rev 223 Rev 228
Line 1... Line 1...
1
/* Default linker script, for normal executables */
1
/* Default linker script, for normal executables */
2
OUTPUT_FORMAT("elf32-avr","elf32-avr","elf32-avr")
2
OUTPUT_FORMAT("elf32-avr","elf32-avr","elf32-avr")
3
OUTPUT_ARCH(avr:4)
3
OUTPUT_ARCH(avr:4)
4
MEMORY
4
MEMORY
5
{
5
{
6
  text   (rx)   : ORIGIN = 0x1800, LENGTH = 2K
6
  text   (rx)   : ORIGIN = 0x0, LENGTH = 8K
7
  data   (rw!x) : ORIGIN = 0x800060, LENGTH = 1K
7
  data   (rw!x) : ORIGIN = 0x800060, LENGTH = 1K
8
  eeprom (rw!x) : ORIGIN = 0x810000, LENGTH = 512
8
  eeprom (rw!x) : ORIGIN = 0x810000, LENGTH = 512
9
}
9
}
10
SECTIONS
10
SECTIONS
11
{
11
{
Line 65... Line 65...
65
  .rel.bss       : { *(.rel.bss)		}
65
  .rel.bss       : { *(.rel.bss)		}
66
  .rela.bss      : { *(.rela.bss)		}
66
  .rela.bss      : { *(.rela.bss)		}
67
  .rel.plt       : { *(.rel.plt)		}
67
  .rel.plt       : { *(.rel.plt)		}
68
  .rela.plt      : { *(.rela.plt)		}
68
  .rela.plt      : { *(.rela.plt)		}
69
  /* Internal text space or external memory */
69
  /* Internal text space or external memory */
-
 
70
  /DISCARD/ :
-
 
71
  {
-
 
72
    *(.vectors)
-
 
73
  }
70
  .app_vectors 0 :
74
  .app_vectors 0x0 :
71
  {
75
  {
72
    *(.app_vectors)
76
    *(.app_vectors)
73
  }
77
  }
74
  .text :
78
  .text __bios_start :
75
  {
79
  {
76
    *(.vectors)
-
 
77
     __ctors_start = . ;
80
    __ctors_start = . ;
78
     *(.ctors)
81
    *(.ctors)
79
     __ctors_end = . ;
82
    __ctors_end = . ;
80
     __dtors_start = . ;
83
    __dtors_start = . ;
81
     *(.dtors)
84
    *(.dtors)
Line 106... Line 109...
106
    *(.fini3)
109
    *(.fini3)
107
    *(.fini2)
110
    *(.fini2)
108
    *(.fini1)
111
    *(.fini1)
109
    *(.fini0)  /* Infinite loop after program termination.  */
112
    *(.fini0)  /* Infinite loop after program termination.  */
110
     _etext = . ;
113
     _etext = . ;
-
 
114
  }  > text
-
 
115
  .bootloader __boot_start :
-
 
116
  {
-
 
117
    *(.boot_vectors)
-
 
118
    __bootloader_start = . ;
-
 
119
    *(.bootloader)
-
 
120
    __bootloader_end = . ;
111
  }  > text
121
  }  > text
112
  .data	 : AT (ADDR (.text) + SIZEOF (.text))
122
  .data	 : AT (ADDR (.text) + SIZEOF (.text))
113
  {
123
  {
114
     PROVIDE (__data_start = .) ;
124
     PROVIDE (__data_start = .) ;
115
    *(.bios_interface)
125
    *(.bios_interface)
Line 133... Line 143...
133
  {
143
  {
134
     PROVIDE (__noinit_start = .) ;
144
     PROVIDE (__noinit_start = .) ;
135
    *(.noinit*)
145
    *(.noinit*)
136
     PROVIDE (__noinit_end = .) ;
146
     PROVIDE (__noinit_end = .) ;
137
     _end = . ;
147
     _end = . ;
138
     PROVIDE (__heap_start = .) ;
148
     PROVIDE (__bios_ram_end = .) ;
139
  }  > data
149
  }  > data
140
  .eeprom  :
150
  .eeprom  :
141
  {
151
  {
142
    *(.eeprom*)
152
    *(.eeprom*)
143
     __eeprom_end = . ;
153
     __eeprom_end = . ;