From fa6895ad35ebfa6a9e69808da0bae249d9b8a638 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Thu, 3 Nov 2022 09:17:41 +0000 Subject: [PATCH] AVR Linker: Allow the start of the data region to specified on the command line. PR 29471 * scripttempl/avr.sc (__DATA_REGION_ORIGIN__): Define. If a value has not been provided on the command line then use DATA_ORIGIN. (MEMORY): Use __DATA_REGION_ORIGIN__ as the start of the data region. --- ld/ChangeLog | 7 +++++++ ld/scripttempl/avr.sc | 4 +++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/ld/ChangeLog b/ld/ChangeLog index 9ba8cbcfd0b..af1f5578b70 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,10 @@ +2022-11-03 Nick Clifton + + PR 29471 + * scripttempl/avr.sc (__DATA_REGION_ORIGIN__): Define. If a value + has not been provided on the command line then use DATA_ORIGIN. + (MEMORY): Use __DATA_REGION_ORIGIN__ as the start of the data region. + 2022-10-21 Nick Clifton PR 29654 diff --git a/ld/scripttempl/avr.sc b/ld/scripttempl/avr.sc index 026871fc6cf..f8e690d3533 100644 --- a/ld/scripttempl/avr.sc +++ b/ld/scripttempl/avr.sc @@ -28,7 +28,9 @@ EOF test -n "${RELOCATING}" && cat <