Don't emit data_section_size when -r is specified
authorJohn Darrington <john@darrington.wattle.id.au>
Fri, 7 Sep 2018 18:26:59 +0000 (20:26 +0200)
committerJohn Darrington <john@darrington.wattle.id.au>
Sun, 16 Sep 2018 15:50:09 +0000 (17:50 +0200)
* ld/scripttempl/elfm9s12z.sc (.install): Add RELOCATING+ qualifier.

ld/scripttempl/elfm9s12z.sc

index cf602b53dc170f1d4ad590550a6901a214e9d62b..5553aeb7caaca7d29af27987edda0b0f4983afa4 100644 (file)
@@ -389,7 +389,7 @@ SECTIONS
 
   .install ${RELOCATING-0}:
   {
-    . = __data_section_size;
+    ${RELOCATING+. = __data_section_size;}
   } ${RELOCATING+ > ${TEXT_MEMORY}}
 
   /* Relocation for some bss and data sections.  */