aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorJohn Darrington <john@darrington.wattle.id.au>2018-09-07 20:26:59 +0200
committerJohn Darrington <john@darrington.wattle.id.au>2018-09-16 17:50:09 +0200
commit57d5aa265f50b8c8c1ebbe4e67285aa9f5a53369 (patch)
tree6d6e0bc49c2e7737b8fd0a016bdbc9284103ed5a /ld
parent19f1fffecd5359a9858151154d3de848f20a5990 (diff)
downloadgdb-57d5aa265f50b8c8c1ebbe4e67285aa9f5a53369.zip
gdb-57d5aa265f50b8c8c1ebbe4e67285aa9f5a53369.tar.gz
gdb-57d5aa265f50b8c8c1ebbe4e67285aa9f5a53369.tar.bz2
Don't emit data_section_size when -r is specified
* ld/scripttempl/elfm9s12z.sc (.install): Add RELOCATING+ qualifier.
Diffstat (limited to 'ld')
-rw-r--r--ld/scripttempl/elfm9s12z.sc2
1 files changed, 1 insertions, 1 deletions
diff --git a/ld/scripttempl/elfm9s12z.sc b/ld/scripttempl/elfm9s12z.sc
index cf602b5..5553aeb 100644
--- a/ld/scripttempl/elfm9s12z.sc
+++ b/ld/scripttempl/elfm9s12z.sc
@@ -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. */