From 0e03d18a4eeb90d3dc17814d5e4c05c5812f50ba Mon Sep 17 00:00:00 2001 From: Senthil Kumar Selvaraj Date: Mon, 25 Apr 2016 13:14:10 +0100 Subject: [PATCH] AVR: Allow the start address of the .text section to be set by --section-start. * scripttempl/avrtiny.sc (.text): Do not set LMA to zero. --- ld/ChangeLog | 4 ++++ ld/scripttempl/avrtiny.sc | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ld/ChangeLog b/ld/ChangeLog index 8bb2be1..4f20b5c 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,7 @@ +2016-04-25 Senthil Kumar Selvaraj + + * scripttempl/avrtiny.sc (.text): Do not set LMA to zero. + 2016-04-21 Nick Clifton * ldlang.c (lang_check_relocs): Use bfd_link_check_relocs in diff --git a/ld/scripttempl/avrtiny.sc b/ld/scripttempl/avrtiny.sc index 045bc4b..0441dcb 100644 --- a/ld/scripttempl/avrtiny.sc +++ b/ld/scripttempl/avrtiny.sc @@ -96,7 +96,7 @@ SECTIONS .rela.plt ${RELOCATING-0} : { *(.rela.plt) } /* Internal text space or external memory. */ - .text ${RELOCATING-0} : ${RELOCATING+ AT (0x0)} + .text ${RELOCATING-0} : { *(.vectors) KEEP(*(.vectors)) -- 2.7.4