aboutsummaryrefslogtreecommitdiff
path: root/ld/scripttempl
diff options
context:
space:
mode:
authorSenthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>2016-05-17 13:14:26 +0100
committerNick Clifton <nickc@redhat.com>2016-05-17 13:14:26 +0100
commit1bdc036f254394412f32b2ae89a6575ececc7031 (patch)
tree7cfe8fda68cd29a17a5beee9a723bb7147acfe06 /ld/scripttempl
parenta43942db49b07a457ee4f960d0f118b23641ec38 (diff)
downloadgdb-1bdc036f254394412f32b2ae89a6575ececc7031.zip
gdb-1bdc036f254394412f32b2ae89a6575ececc7031.tar.gz
gdb-1bdc036f254394412f32b2ae89a6575ececc7031.tar.bz2
Place progmem data from AVR's libc before other progmem data.
* scripttempl/avr.sc (text): Place .progmem.data from avr-libc above .progmem*. * scripttempl/avrtiny.sc (text): Likewise.
Diffstat (limited to 'ld/scripttempl')
-rw-r--r--ld/scripttempl/avr.sc4
-rw-r--r--ld/scripttempl/avrtiny.sc4
2 files changed, 8 insertions, 0 deletions
diff --git a/ld/scripttempl/avr.sc b/ld/scripttempl/avr.sc
index c26f4ea..010b218 100644
--- a/ld/scripttempl/avr.sc
+++ b/ld/scripttempl/avr.sc
@@ -113,6 +113,10 @@ SECTIONS
${RELOCATING+ *(.trampolines*)}
${CONSTRUCTING+ __trampolines_end = . ; }
+ /* avr-libc expects these data to reside in lower 64K. */
+ ${RELOCATING+ *libprintf_flt.a:*(.progmem.data)}
+ ${RELOCATING+ *libc.a:*(.progmem.data)}
+
${RELOCATING+ *(.progmem*)}
${RELOCATING+. = ALIGN(2);}
diff --git a/ld/scripttempl/avrtiny.sc b/ld/scripttempl/avrtiny.sc
index 0441dcb..3f69e9a 100644
--- a/ld/scripttempl/avrtiny.sc
+++ b/ld/scripttempl/avrtiny.sc
@@ -113,6 +113,10 @@ SECTIONS
${RELOCATING+ *(.trampolines*)}
${CONSTRUCTING+ __trampolines_end = . ; }
+ /* avr-libc expects these data to reside in lower 64K. */
+ ${RELOCATING+ *libprintf_flt.a:*(.progmem.data)}
+ ${RELOCATING+ *libc.a:*(.progmem.data)}
+
${RELOCATING+ *(.progmem*)}
${RELOCATING+. = ALIGN(2);}