Add TINY_READONLY_SECTION, TINY_DATA_SECTION, TINY_BSS_SECTION.
authorNick Clifton <nickc@redhat.com>
Thu, 22 Dec 2005 17:43:34 +0000 (17:43 +0000)
committerNick Clifton <nickc@redhat.com>
Thu, 22 Dec 2005 17:43:34 +0000 (17:43 +0000)
ld/ChangeLog
ld/emulparams/h8300.sh
ld/emulparams/h8300elf.sh
ld/emulparams/h8300sxelf.sh
ld/scripttempl/elf.sc

index 8d07378b8faa37db4a628e56d88f1b3eb2b7f91d..c0c61d8e3de209d8f3137e871052f8923ca33f4d 100644 (file)
@@ -1,3 +1,12 @@
+2005-12-22  Santosh Raktawan <santoshr2@kpitcummins.com>
+
+       * 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  <hongjiu.lu@intel.com>
 
        PR ld/2065
index 49eb3c453db4d3380054c1b7c33b8d654355fcd6..68ecdb3be7d4e4711a3f2c4328ba8fba57894175 100644 (file)
@@ -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)
+  }"
index 0617d5b1ccaa0bfa593e95ce32845f994011ba38..67d5b20361e8a10bc8299250d68ead104342b582 100644 (file)
@@ -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)
+  }"
index 18f82f64f433ea09c23f22df4450e5ebc3071df5..bac2cc3cd0e88b701bdae4e546f9f69380e095df 100644 (file)
@@ -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)
+  }"
index 4585a59633693b65164b6c07dffbe17e15e1d14d..d7b0a79c62ee4495b0c0f85afbb4393aafcb9eca 100644 (file)
@@ -334,6 +334,7 @@ cat <<EOF
   } =${NOP-0}
 
   ${TEXT_PLT+${PLT}}
+  ${TINY_READONLY_SECTION}
   .text         ${RELOCATING-0} :
   {
     ${RELOCATING+${TEXT_START_SYMBOLS}}
@@ -496,6 +497,9 @@ cat <<EOF
   .debug_typenames 0 : { *(.debug_typenames) }
   .debug_varnames  0 : { *(.debug_varnames) }
 
+  ${TINY_DATA_SECTION}
+  ${TINY_BSS_SECTION}
+
   ${STACK_ADDR+${STACK}}
   ${OTHER_SECTIONS}
   ${RELOCATING+${OTHER_SYMBOLS}}