avr: implement .data section

This doesn't completely work for some reason as the first character of
.data is corrupted, but otherwise it works.
This commit is contained in:
Ayke van Laethem
2018-09-16 16:26:04 +02:00
parent 39e3fe28db
commit a02426948b
2 changed files with 21 additions and 0 deletions
+4
View File
@@ -25,10 +25,14 @@ SECTIONS
_stack_top = .;
} >RAM
_sidata = LOADADDR(.data);
.data :
{
_sdata = .;
*(.data)
*(.data*)
_edata = .;
} >RAM AT>FLASH_TEXT
.bss :