Move AVR .promemx.* sections into higher memory.
authorGeorg-Johann Lay <gjl@gcc.gnu.org>
Thu, 27 Jul 2017 13:17:14 +0000 (14:17 +0100)
committerNick Clifton <nickc@redhat.com>
Thu, 27 Jul 2017 13:17:14 +0000 (14:17 +0100)
PR ld/21849
* scripttempl/avr.sc: Split .progmemx.* from .progmem.* and locate
former at a higher address.

ld/ChangeLog
ld/scripttempl/avr.sc

index c44bc33d6dd931d36dfc36d7e5484f3c2505a311..fad1b7c165c13d39e0385fde278209b866b4f04c 100644 (file)
@@ -1,3 +1,9 @@
+2017-07-27  Georg-Johann Lay  <gjl@gcc.gnu.org>
+
+       PR ld/21849
+       * scripttempl/avr.sc: Split .progmemx.* from .progmem.* and locate
+       former at a higher address.
+
 2017-07-25  Alan Modra  <amodra@gmail.com>
 
        * testsuite/ld-powerpc/tlsopt5.s: Add cfi.
index 07553b4b061f481054059b93fc630547f5aa1f10..7a146b7777e2d20d85880051f29a8175c5f3f79f 100644 (file)
@@ -128,7 +128,7 @@ SECTIONS
     ${RELOCATING+ *libprintf_flt.a:*(.progmem.data)}
     ${RELOCATING+ *libc.a:*(.progmem.data)}
 
-    ${RELOCATING+ *(.progmem*)}
+    ${RELOCATING+ *(.progmem.*)}
     
     ${RELOCATING+. = ALIGN(2);}
 
@@ -196,6 +196,8 @@ SECTIONS
     *(.hightext)
     ${RELOCATING+ *(.hightext*)}
 
+    ${RELOCATING+ *(.progmemx.*)}
+
     ${RELOCATING+. = ALIGN(2);}
 
     /* For tablejump instruction arrays.  We don't relax