Rename sh-symbian-elf toolchain to sh-*-symbianelf
authorNick Clifton <nickc@redhat.com>
Fri, 9 Jul 2004 12:32:35 +0000 (12:32 +0000)
committerNick Clifton <nickc@redhat.com>
Fri, 9 Jul 2004 12:32:35 +0000 (12:32 +0000)
12 files changed:
bfd/ChangeLog
bfd/config.bfd
bfd/elf32-sh-symbian.c
bfd/elf32-sh.c
gas/ChangeLog
gas/NEWS
gas/config/tc-sh.c
gas/configure
gas/configure.in
ld/ChangeLog
ld/NEWS
ld/configure.tgt

index d7c94574d3752f0879caa1bea4420ff15d125212..d7bbfe1c9c6e1e5ed33f5d1582c67c749ef18ddd 100644 (file)
@@ -1,3 +1,13 @@
+2004-07-09  Nick Clifton  <nickc@redhat.com>
+
+       * config.bfd: Change sh-sybmian-elf to sh-*-symbianelf.
+       * elf32-sh-symbian.c: Rename the sh_find_elf_flags and
+       sh_elf_get_flags_from_mach functions so that they do not conflict
+       when this target is built with other sh-elf targets.
+       * elf32-sh.c (sh_elf_get_flags_from_mach): Remove bogus
+       suppression of this function.
+       (sh_elf_find_flags): Likewise.
+
 2004-07-07  Tomer Levi  <Tomer.Levi@nsc.com>
 
        * Makefile.am (ALL_MACHINES): Add cpu-crx.lo.
index bc4c78c9a002f01593c7e6ac1654767e3e8d27bf..c8c08ed4b9d25ee0c795ec8fa8dc6d75895e285c 100644 (file)
@@ -1107,7 +1107,7 @@ case "${targ}" in
     targ_defvec=bfd_elf32_shnbsd_vec
     targ_selvecs="bfd_elf32_shlnbsd_vec shcoff_vec shlcoff_vec"
     ;;
-  sh*-symbian-elf*)
+  sh*-*-symbianelf*)
     targ_defvec=bfd_elf32_shl_symbian_vec
     targ_selvecs="shlcoff_vec shlcoff_small_vec"
     targ_underscore=yes
index 0dbf2277377a7ec57dfa6450d84d88f63101007d..6c243399b27db4e099a01846b4be3ec8c9809575 100644 (file)
@@ -21,6 +21,8 @@
 
 /* Stop elf32-sh.c from defining any target vectors.  */
 #define SH_TARGET_ALREADY_DEFINED
+#define sh_find_elf_flags           sh_symbian_find_elf_flags
+#define sh_elf_get_flags_from_mach  sh_symbian_elf_get_flags_from_mach 
 #include "elf32-sh.c"
 
 
index b5a3caf39edd80bc4095ef576130ed054d780bbc..e989bd5a857efbff7403a3ca61c8d9f0fe251f7c 100644 (file)
@@ -6833,7 +6833,6 @@ sh_elf_set_mach_from_flags (bfd *abfd)
    return the equivalent ELF flags from the table.
    Return -1 if no match is found.  */
 
-#ifndef SH_TARGET_ALREADY_DEFINED
 int
 sh_elf_get_flags_from_mach (unsigned long mach)
 {
@@ -6848,7 +6847,6 @@ sh_elf_get_flags_from_mach (unsigned long mach)
 
   return -1;
 }
-#endif
 #endif /* not sh_elf_set_mach_from_flags */
 
 #ifndef sh_elf_set_private_flags
@@ -6885,7 +6883,6 @@ sh_elf_copy_private_data (bfd * ibfd, bfd * obfd)
 /* This function returns the ELF architecture number that
    corresponds to the given arch_sh* flags.  */
 
-#ifndef SH_TARGET_ALREADY_DEFINED
 int
 sh_find_elf_flags (unsigned int arch_set)
 {
@@ -6894,7 +6891,6 @@ sh_find_elf_flags (unsigned int arch_set)
 
   return sh_elf_get_flags_from_mach (bfd_mach);
 }
-#endif
 
 /* This routine initialises the elf flags when required and
    calls sh_merge_bfd_arch() to check dsp/fpu compatibility.  */
index 03532ee42a96dc757d44f5b95e48a79f0e9a8d81..feab2ee3bd9a4ccd2a36b1516c727ca087882d93 100644 (file)
@@ -1,3 +1,11 @@
+2004-07-09  Nick Clifton  <nickc@redhat.com>
+
+       * configure.in: Change sh-sybmian-elf to sh-*-symbianelf.
+       * configure: Regenerate.
+       * NEWS: Change sh-sybmian-elf to sh-*-symbianelf.
+       * config/tc-sh.c (sh_elf_final_processing): Use renamed version of
+       sh_find_elf_flags if necessary.
+
 2004-07-08  Richard Sandiford  <rsandifo@redhat.com>
 
        * config/tc-mips.c (mips_fix_adjustable): If the full addend is
index 0c0c85e640213d1271a8da8aa87df5d9a04f3f4f..19cbc6067effcbf62fc69419761b0144e7990b1a 100644 (file)
--- a/gas/NEWS
+++ b/gas/NEWS
@@ -2,7 +2,7 @@
 
 * Support for the crx-elf target added.
 
-* Support for the sh-symbian-elf target added.
+* Support for the sh-symbianelf target added.
 
 * Added a pseudo-op (.secrel32) to generate 32 bit section relative relocations
   on pe[i]-i386; required for this target's DWARF 2 support.
index f33925bb5e402b8acb98cb9da0eef9c185314073..1962151669181d39e08006c7fb7ed13894d5051d 100644 (file)
@@ -3629,6 +3629,10 @@ sh_elf_final_processing (void)
   if (sh64_isa_mode != sh64_isa_unspecified)
     val = EF_SH5;
   else
+#elif defined TARGET_SYMBIAN
+    if (1)
+      val = sh_symbian_find_elf_flags (valid_arch);
+    else
 #endif /* HAVE_SH64 */
     val = sh_find_elf_flags (valid_arch);
 
index f2c87b9110ab2733089c2750ff025e62c7bec991..e8242be7422155f6fbfc5ad87a3337bedc4379c5 100755 (executable)
@@ -4507,7 +4507,7 @@ echo "$as_me: error: Solaris must be configured little endian" >&2;}
       sh5*-*-netbsd*)                  fmt=elf em=nbsd ;;
       sh64*-*-netbsd*)                 fmt=elf em=nbsd ;;
       sh*-*-netbsdelf*)                        fmt=elf em=nbsd ;;
-      sh*-symbian-elf*)                        fmt=elf endian=little
+      sh*-*-symbianelf*)               fmt=elf endian=little
 
 cat >>confdefs.h <<\_ACEOF
 #define TARGET_SYMBIAN 1
index b1f2c62e1444278c21a31f46b38020d111060bca..c80f3e3d44e30b69be1f0abce3a55682fc5f87a0 100644 (file)
@@ -451,7 +451,7 @@ changequote([,])dnl
       sh5*-*-netbsd*)                  fmt=elf em=nbsd ;;
       sh64*-*-netbsd*)                 fmt=elf em=nbsd ;;
       sh*-*-netbsdelf*)                        fmt=elf em=nbsd ;;
-      sh*-symbian-elf*)                        fmt=elf endian=little
+      sh*-*-symbianelf*)               fmt=elf endian=little
                AC_DEFINE(TARGET_SYMBIAN, 1, [Define if target is Symbian OS.])
                ;;
       sh-*-elf*)                       fmt=elf ;;
index da8ea0818fb0649f4236cc3bd5f6c1aa4f77b163..93695e03826b789450b13a8eb3c23cd2920fc37f 100644 (file)
@@ -1,3 +1,7 @@
+2004-07-09  Nick Clifton  <nickc@redhat.com>
+
+       * configure.tgt: Change sh-sybmian-elf to sh-*-symbianelf.
+
 2004-07-06  Tomer Levi  <Tomer.Levi@nsc.com>
 
        * Makefile.am (ALL_EMULATIONS): Add eelf32crx.o.
diff --git a/ld/NEWS b/ld/NEWS
index dc5427be8948e7ad79d510c7ab54c94d15146954..f7faeba81c1077222203e5f1a3d87b37926e4fa5 100644 (file)
--- a/ld/NEWS
+++ b/ld/NEWS
@@ -2,7 +2,7 @@
 
 * Support for the crx-elf target added.
 
-* Support for the sh-symbian-elf target added.
+* Support for the sh-symbianelf target added.
 
 * A new linker command line switch has been added which allows the hash table
   size to be set to a suitable prime value near to its argument.  This switch
index cade3741c5d717c6fe08b38e9468ed3349f06543..26e27fe21cdff9e71750f2ecf3e718a5fefb1638 100644 (file)
@@ -330,7 +330,7 @@ sh*-*-netbsdelf*)
                        targ_emul=shelf_nbsd
                        targ_extra_emuls=shlelf_nbsd
                        ;;
-sh*-symbian-elf*)
+sh*-*-symbianelf*)
                        targ_emul=shlsymbian
                        ;;
 shle*-*-elf* | sh[1234]*le*-*-elf | shle*-*-kaos*)
This page took 0.041466 seconds and 4 git commands to generate.