From: Nick Clifton Date: Thu, 22 Dec 2005 17:43:34 +0000 (+0000) Subject: Add TINY_READONLY_SECTION, TINY_DATA_SECTION, TINY_BSS_SECTION. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ecc49060c66f6bbc36faa744dc49016832119176;p=binutils-gdb.git Add TINY_READONLY_SECTION, TINY_DATA_SECTION, TINY_BSS_SECTION. --- diff --git a/ld/ChangeLog b/ld/ChangeLog index 8d07378b8fa..c0c61d8e3de 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,12 @@ +2005-12-22 Santosh Raktawan + + * ld/emulparms/h8300helf.sh (TINY_READONLY_SECTION, + TINY_DATA_SECTION, TINY_BSS_SECTION): Define. + * ld/emulparms/h8300self.sh: Likewise. + * ld/emulparms/h8300sxelf.sh: Likewise. + * ld/scripttempl/elf.sc: Add TINY_READONLY_SECTION, + TINY_DATA_SECTION, TINY_BSS_SECTION. + 2005-12-19 H.J. Lu PR ld/2065 diff --git a/ld/emulparams/h8300.sh b/ld/emulparams/h8300.sh index 49eb3c453db..68ecdb3be7d 100644 --- a/ld/emulparams/h8300.sh +++ b/ld/emulparams/h8300.sh @@ -3,3 +3,16 @@ OUTPUT_FORMAT="coff-h8300" TEXT_START_ADDR=0x8000 TARGET_PAGE_SIZE=128 ARCH=h8300 +TINY_READONLY_SECTION=".tinyrodata : + { + *(.tinyrodata) + } =0" +TINY_DATA_SECTION=".tinydata 0xff8000 : + { + *(.tinydata) + _tinydata = .; + }" +TINY_BSS_SECTION=".tinybss : AT (_tinydata) + { + *(.tinybss) + }" diff --git a/ld/emulparams/h8300elf.sh b/ld/emulparams/h8300elf.sh index 0617d5b1cca..67d5b20361e 100644 --- a/ld/emulparams/h8300elf.sh +++ b/ld/emulparams/h8300elf.sh @@ -10,3 +10,16 @@ ARCH=h8300 TEMPLATE_NAME=elf32 EMBEDDED=yes STACK_ADDR=0xfefc +TINY_READONLY_SECTION=".tinyrodata : + { + *(.tinyrodata) + } =0" +TINY_DATA_SECTION=".tinydata 0xff8000 : + { + *(.tinydata) + _tinydata = .; + }" +TINY_BSS_SECTION=".tinybss : AT (_tinydata) + { + *(.tinybss) + }" diff --git a/ld/emulparams/h8300sxelf.sh b/ld/emulparams/h8300sxelf.sh index 18f82f64f43..bac2cc3cd0e 100644 --- a/ld/emulparams/h8300sxelf.sh +++ b/ld/emulparams/h8300sxelf.sh @@ -1,3 +1,16 @@ . ${srcdir}/emulparams/h8300elf.sh ARCH="h8300:h8300sx" STACK_ADDR=0x2fefc +TINY_READONLY_SECTION=".tinyrodata : + { + *(.tinyrodata) + } =0" +TINY_DATA_SECTION=".tinydata 0xff8000 : + { + *(.tinydata) + _tinydata = .; + }" +TINY_BSS_SECTION=".tinybss : AT (_tinydata) + { + *(.tinybss) + }" diff --git a/ld/scripttempl/elf.sc b/ld/scripttempl/elf.sc index 4585a596336..d7b0a79c62e 100644 --- a/ld/scripttempl/elf.sc +++ b/ld/scripttempl/elf.sc @@ -334,6 +334,7 @@ cat <