h8300 elf linker script

Alan Modra amodra@bigpond.net.au
Mon Oct 23 17:13:00 GMT 2006


	* emulparams/h8300elf.sh (TINY_DATA_SECTION, TINY_BSS_SECTION): Don't
	set section address on a relocatable link.

Index: ld/emulparams/h8300elf.sh
===================================================================
RCS file: /cvs/src/src/ld/emulparams/h8300elf.sh,v
retrieving revision 1.4
diff -u -p -r1.4 h8300elf.sh
--- ld/emulparams/h8300elf.sh	7 Sep 2006 17:01:10 -0000	1.4
+++ ld/emulparams/h8300elf.sh	23 Oct 2006 03:00:12 -0000
@@ -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)
   }"

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre



More information about the Binutils mailing list