2003-11-28 Alexandre Oliva <aoliva@redhat.com>
authorAlexandre Oliva <aoliva@redhat.com>
Tue, 6 Jan 2004 19:19:52 +0000 (19:19 +0000)
committerAlexandre Oliva <aoliva@redhat.com>
Tue, 6 Jan 2004 19:19:52 +0000 (19:19 +0000)
* emulparams/elf32frvfd.sh (EMBEDDED): Clear.
2003-11-05  Alexandre Oliva  <aoliva@redhat.com>
* emulparams/elf32frvfd.sh (STACK_ADDR): Unset.
(MAXPAGESIZE): Set to 64Kb.
(OTHER_READONLY_SECTIONS): Define __ROFIXUP_LIST__ and
__ROFIXUP_END__.  Don't map .rofixup.got any more.
* emulparams/elf32frv.sh (NOP): Set.
2003-10-31  Alexandre Oliva  <aoliva@redhat.com>
* configure.tgt: Add frv-*-*linux*.
2003-09-30  Alexandre Oliva  <aoliva@redhat.com>
* Makefile.am (ALL_EMULATIONS): Added eelf32frvfd.o.
(eelf32frvfd.c): New.
* configure.tgt <frv-*-*>: Added it to targ_extra_emuls.
* emulparams/elf32frv.sh: Reverted previous two patches.
* emulparams/elf32frvfd.sh: New.
* Makefile.in: Rebuilt.
2003-09-18  Alexandre Oliva  <aoliva@redhat.com>
* emulparams/elf32frv.sh (OTHER_READONLY_SECTIONS): Added
.rofixup.got to .rofixup.
2003-09-15  Alexandre Oliva  <aoliva@redhat.com>
* emulparams/elf32frv.sh (MAXPAGESIZE): Make it 256KiB, not 256B.
(TEMPLATE_NAME, GENERATE_SHLIB_SCRIPT): Set.

ld/ChangeLog
ld/Makefile.am
ld/Makefile.in
ld/configure.tgt
ld/emulparams/elf32frv.sh
ld/emulparams/elf32frvfd.sh [new file with mode: 0644]

index e9a16a28ef89dca9e381a9d0cab4b02db475170b..81ae1eeecb7b247ec68570e99f3c8a9af395a21e 100644 (file)
@@ -1,3 +1,29 @@
+2004-01-06  Alexandre Oliva  <aoliva@redhat.com>
+
+       2003-11-28  Alexandre Oliva  <aoliva@redhat.com>
+       * emulparams/elf32frvfd.sh (EMBEDDED): Clear.
+       2003-11-05  Alexandre Oliva  <aoliva@redhat.com>
+       * emulparams/elf32frvfd.sh (STACK_ADDR): Unset.
+       (MAXPAGESIZE): Set to 64Kb.
+       (OTHER_READONLY_SECTIONS): Define __ROFIXUP_LIST__ and
+       __ROFIXUP_END__.  Don't map .rofixup.got any more.
+       * emulparams/elf32frv.sh (NOP): Set.
+       2003-10-31  Alexandre Oliva  <aoliva@redhat.com>
+       * configure.tgt: Add frv-*-*linux*.
+       2003-09-30  Alexandre Oliva  <aoliva@redhat.com>
+       * Makefile.am (ALL_EMULATIONS): Added eelf32frvfd.o.
+       (eelf32frvfd.c): New.
+       * configure.tgt <frv-*-*>: Added it to targ_extra_emuls.
+       * emulparams/elf32frv.sh: Reverted previous two patches.
+       * emulparams/elf32frvfd.sh: New.
+       * Makefile.in: Rebuilt.
+       2003-09-18  Alexandre Oliva  <aoliva@redhat.com>
+       * emulparams/elf32frv.sh (OTHER_READONLY_SECTIONS): Added
+       .rofixup.got to .rofixup.
+       2003-09-15  Alexandre Oliva  <aoliva@redhat.com>
+       * emulparams/elf32frv.sh (MAXPAGESIZE): Make it 256KiB, not 256B.
+       (TEMPLATE_NAME, GENERATE_SHLIB_SCRIPT): Set.
+
 2004-01-05  Jakub Jelinek  <jakub@redhat.com>
 
        * emulparams/elf_s390.sh (NO_SMALL_DATA): Set to yes.
index 2c59289258eb3a4fe3a1517c2fe7115050868920..25b1cfb441917da740c61f0d70357607d653e2d3 100644 (file)
@@ -353,6 +353,7 @@ ALL_EMULATIONS = \
        evsta.o \
        ew65.o \
        ez8001.o \
+         eelf32frvfd.o \
        ez8002.o
 
 ALL_64_EMULATIONS = \
@@ -1434,6 +1435,10 @@ ez8001.c: $(srcdir)/emulparams/z8001.sh \
 ez8002.c: $(srcdir)/emulparams/z8002.sh \
   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/z8000.sc ${GEN_DEPENDS}
        ${GENSCRIPTS} z8002 "$(tdir_z8002)"
+eelf32frvfd.c: $(srcdir)/emulparams/elf32frvfd.sh \
+  $(srcdir)/emulparams/elf32frv.sh \
+  $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
+       ${GENSCRIPTS} elf32frvfd "$(tdir_frv)"
 
 # We need this for automake to use YLWRAP.
 EXTRA_ld_new_SOURCES = deffilep.y
index 147298208e245eee2d75ea0677db2d9e8657320d..5a91690336a0363047faa1f8f99570939424c72d 100644 (file)
@@ -467,6 +467,7 @@ ALL_EMULATIONS = \
        evsta.o \
        ew65.o \
        ez8001.o \
+         eelf32frvfd.o \
        ez8002.o
 
 
@@ -2160,6 +2161,10 @@ ez8001.c: $(srcdir)/emulparams/z8001.sh \
 ez8002.c: $(srcdir)/emulparams/z8002.sh \
   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/z8000.sc ${GEN_DEPENDS}
        ${GENSCRIPTS} z8002 "$(tdir_z8002)"
+eelf32frvfd.c: $(srcdir)/emulparams/elf32frvfd.sh \
+  $(srcdir)/emulparams/elf32frv.sh \
+  $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
+       ${GENSCRIPTS} elf32frvfd "$(tdir_frv)"
 
 # The generated emulation files mostly have the same dependencies.
 $(EMULATION_OFILES): ../bfd/bfd.h sysdep.h config.h $(INCDIR)/bfdlink.h \
index b1fef159f2d55c97769861c809190f9f7b3810b2..d809c1149ff61a7cd21fb87d82d9ad2114021a93 100644 (file)
@@ -544,7 +544,8 @@ v850-*-*)           targ_emul=v850 ;;
 v850e-*-*)             targ_emul=v850 ;;
 v850ea-*-*)            targ_emul=v850 ;;
 iq2000-*-elf)           targ_emul=elf32iq2000 ; targ_extra_emuls="elf32iq10" ;;
-frv-*-*)               targ_emul=elf32frv ;;
+frv-*-*linux*)         targ_emul=elf32frvfd ;;
+frv-*-*)               targ_emul=elf32frv ; targ_extra_emuls="elf32frvfd" ;;
 w65-*-*)               targ_emul=w65 ;;
 xstormy16-*-*)         targ_emul=elf32xstormy16 ;;
 xtensa-*-*)            targ_emul=elf32xtensa;;
index fd4be3e18479b6c43e8b24e3585ae291c3ba4c8e..042ed8c21f896ff920fd3e1a170063fd05142559 100755 (executable)
@@ -10,6 +10,7 @@ OTHER_EXCLUDE_FILES='*frvend.o'
 OTHER_BSS_END_SYMBOLS='__end = .;'
 DATA_START_SYMBOLS='__data_start = . ;'
 STACK_ADDR=0x200000
+NOP=0x80000000
 OTHER_GOT_SYMBOLS='
   . = ALIGN(8);  _gp = . + 2048;
   PROVIDE (gp = _gp);'
diff --git a/ld/emulparams/elf32frvfd.sh b/ld/emulparams/elf32frvfd.sh
new file mode 100644 (file)
index 0000000..224abed
--- /dev/null
@@ -0,0 +1,14 @@
+. ${srcdir}/emulparams/elf32frv.sh
+unset STACK_ADDR
+MAXPAGESIZE=0x10000
+TEMPLATE_NAME=elf32
+GENERATE_SHLIB_SCRIPT=yes
+EMBEDDED= # This gets us program headers mapped as part of the text segment.
+OTHER_GOT_SYMBOLS=
+OTHER_READONLY_SECTIONS="
+  .rofixup        : {
+    ${RELOCATING+__ROFIXUP_LIST__ = .;}
+    *(.rofixup)
+    ${RELOCATING+__ROFIXUP_END__ = .;}
+  }
+"