| /* required to correctly link newlib */ |
| GROUP( -lc -lgloss -lgcc -lsupc++ ) |
| flash (rx) : ORIGIN = 0x20000000, LENGTH = 0x100000 |
| ram (!rx) : ORIGIN = 0x10000000, LENGTH = 0x10000 |
| _stack_start = ORIGIN(ram) + LENGTH(ram); |
| /* We have to align each sector to word boundaries as our current s19->slm |
| * conversion scripts are not able to handle non-word aligned sections. */ |
| .crt : { *(.crt) } > flash |
| /* the 256 byte alignment is required by the machine trap vector table */ |
| LONG((__CTOR_END__ - __CTOR_LIST__) / 4 - 2) |
| LONG((__DTOR_END__ - __DTOR_LIST__) / 4 - 2) |
| /* idata stores the static variable data that will be loaded in ram below */ |
| /* Static variable LMA at end of program |
| VMA at start of RAM. Stack is at end of RAM */ |
| .data 0x10000000 : AT ( _idata ){ |
| _sdata = .; /* start of data */ |
| _edata = .; /* end of data */ |