[binutils-gdb] Don't emit data_section_size when -r is specified
John Darrington
jmd@sourceware.org
Sun Sep 16 16:06:00 GMT 2018
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=57d5aa265f50b8c8c1ebbe4e67285aa9f5a53369
commit 57d5aa265f50b8c8c1ebbe4e67285aa9f5a53369
Author: John Darrington <john@darrington.wattle.id.au>
Date: Fri Sep 7 20:26:59 2018 +0200
Don't emit data_section_size when -r is specified
* ld/scripttempl/elfm9s12z.sc (.install): Add RELOCATING+ qualifier.
Diff:
---
ld/scripttempl/elfm9s12z.sc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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. */
More information about the Binutils-cvs
mailing list