aboutsummaryrefslogtreecommitdiffhomepage
path: root/targets/avr.ld
diff options
context:
space:
mode:
Diffstat (limited to 'targets/avr.ld')
-rw-r--r--targets/avr.ld4
1 files changed, 4 insertions, 0 deletions
diff --git a/targets/avr.ld b/targets/avr.ld
index 720465ca4..a3460c136 100644
--- a/targets/avr.ld
+++ b/targets/avr.ld
@@ -5,6 +5,8 @@ MEMORY
RAM (xrw) : ORIGIN = 0x800000 + __ram_start, LENGTH = __ram_size
}
+ENTRY(__vector_RESET)
+
SECTIONS
{
.text :
@@ -12,9 +14,11 @@ SECTIONS
KEEP(*(.vectors))
KEEP(*(.text.__vector_RESET))
KEEP(*(.text.main)) /* main must follow the reset handler */
+ *(.text)
*(.text.*)
*(.progmem)
*(.progmem.*)
+ . = ALIGN(16); /* needed with ld.lld for some reasoon */
}
.stack (NOLOAD) :