Explicit locations: introduce explicit locations
[deliverable/binutils-gdb.git] / ld / emulparams / h8300elf.sh
index 67d5b20361e8a10bc8299250d68ead104342b582..38b8a3692f2e1548ea2f3806a34567a00723bd56 100644 (file)
@@ -3,6 +3,7 @@
 
 SCRIPT_NAME=elf
 OUTPUT_FORMAT="elf32-h8300"
+NO_REL_RELOCS=yes
 TEXT_START_ADDR=0x100
 MAXPAGESIZE=2
 TARGET_PAGE_SIZE=128
@@ -14,12 +15,12 @@ TINY_READONLY_SECTION=".tinyrodata :
   {
        *(.tinyrodata)
   } =0"
-TINY_DATA_SECTION=".tinydata   0xff8000 :
+TINY_DATA_SECTION=".tinydata   ${RELOCATING+0xff8000} :
   {
        *(.tinydata)
-       _tinydata = .;
+        ${RELOCATING+ _tinydata = .; }
   }"
-TINY_BSS_SECTION=".tinybss     : AT (_tinydata)
+TINY_BSS_SECTION=".tinybss     : ${RELOCATING+AT (_tinydata)}
   {
        *(.tinybss)
   }"
This page took 0.031244 seconds and 4 git commands to generate.