Place progmem data from AVR's libc before other progmem data.
authorSenthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
Tue, 17 May 2016 12:14:26 +0000 (13:14 +0100)
committerNick Clifton <nickc@redhat.com>
Tue, 17 May 2016 12:14:26 +0000 (13:14 +0100)
* scripttempl/avr.sc (text): Place .progmem.data from avr-libc
above .progmem*.
* scripttempl/avrtiny.sc (text): Likewise.

ld/ChangeLog
ld/scripttempl/avr.sc
ld/scripttempl/avrtiny.sc

index 783355c137a10a87eb4976370d32c3871ff174b7..180ea03226d4da9c893bbf1d8951976227b873b6 100644 (file)
@@ -1,3 +1,9 @@
+016-05-17  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
+
+       * scripttempl/avr.sc (text): Place .progmem.data from avr-libc
+       above .progmem*.
+       * scripttempl/avrtiny.sc (text): Likewise.
+
 2016-05-17  Maciej W. Rozycki  <macro@imgtec.com>
 
        * testsuite/ld-unique/unique.exp: Use `is_elf_format' and
index c26f4ead94d447cfe2e96d63796197b2ec5291f0..010b218c53857075eb8958eed4b1c037a487eb38 100644 (file)
@@ -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);}
index 0441dcba9307e922fa2443a83a179780ae7086b2..3f69e9abce4a54b90d55e3f74e0a82a8079e3050 100644 (file)
@@ -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);}