From 19163ab3bd1380b8bc597679b41e7f6a2346cf6d Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Mon, 23 Oct 2006 03:30:02 +0000 Subject: * emulparams/h8300elf.sh (TINY_DATA_SECTION, TINY_BSS_SECTION): Don't set section address on a relocatable link. --- ld/emulparams/h8300elf.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ld/emulparams') diff --git a/ld/emulparams/h8300elf.sh b/ld/emulparams/h8300elf.sh index 39cff18..fb4db40 100644 --- a/ld/emulparams/h8300elf.sh +++ b/ld/emulparams/h8300elf.sh @@ -14,12 +14,12 @@ TINY_READONLY_SECTION=".tinyrodata : { *(.tinyrodata) } =0" -TINY_DATA_SECTION=".tinydata 0xff8000 : +TINY_DATA_SECTION=".tinydata ${RELOCATING+0xff8000} : { *(.tinydata) ${RELOCATING+ _tinydata = .; } }" -TINY_BSS_SECTION=".tinybss : AT (_tinydata) +TINY_BSS_SECTION=".tinybss : ${RELOCATING+AT (_tinydata)} { *(.tinybss) }" -- cgit v1.1