This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: EM_MIPS* constants


On Wed, May 09, 2001 at 07:18:51PM -0700, Ian Lance Taylor wrote:

> > #define EM_MIPS		8	/* MIPS R3000 (officially, big-endian only) */
> > #define EM_MIPS_RS4_BE 10	/* MIPS R4000 big-endian */ /* Depreciated */
> > #define EM_MIPS_RS3_LE 10	/* MIPS R3000 little-endian (Oct 4 1999 Draft)*/
> > 
> > I checked with registry@sco.com; according to them EM_MIPS_RS3_LE was
> > registered as 10 in '92 and they don't know about EM_MIPS_RS4_BE which is
> > also lurking around in other free code such as the Linux kernel.
> > 
> > So the question is, did EM_MIPS_RS4_BE ever get used?  To date I haven't
> > seen any objects which marked as architecture 10 nor any code using
> > EM_MIPS_RS4_BE when generating object files, so I think it should be deleted
> > before causing even more confusion.
> 
> As far as I know it was never used.

In that case here is a patch to eleminate all occurances of EM_MIPS_RS4_BE
from binutils.  I checked gdb; it has no other occurances.

  Ralf

For include/elf/ChangeLog:

2001-05-09  Ralf Baechle  <ralf@gnu.org>

	* common.h: Remove definition of EM_MIPS_RS4_BE.  The constant was
	never in active use and is used otherwise by the ABI.


For binutils/Changelog:

2001-05-09  Ralf Baechle  <ralf@gnu.org>

	* readelf.c: Remove definition of EM_MIPS_RS4_BE.  The constant was
	never in active use and is used otherwise by the ABI.


diff -urN binutils-cygnus/binutils/readelf.c binutils/binutils/readelf.c
--- binutils-cygnus/binutils/readelf.c	Wed May  9 23:50:19 2001
+++ binutils/binutils/readelf.c	Wed May  9 23:45:59 2001
@@ -562,7 +562,6 @@
     case EM_CYGNUS_M32R:
     case EM_CYGNUS_D10V:
     case EM_MIPS:
-    case EM_MIPS_RS4_BE:
       return FALSE;
 
       /* Targets that use RELA relocations.  */
@@ -902,7 +901,6 @@
 	  break;
 
 	case EM_MIPS:
-	case EM_MIPS_RS4_BE:
 	  rtype = elf_mips_reloc_type (type);
 	  break;
 
@@ -1179,7 +1177,6 @@
 	  switch (elf_header.e_machine)
 	    {
 	    case EM_MIPS:
-	    case EM_MIPS_RS4_BE:
 	      result = get_mips_dynamic_type (type);
 	      break;
 	    case EM_SPARCV9:
@@ -1264,7 +1261,6 @@
     case EM_860:         	return "Intel 80860";
     case EM_MIPS:        	return "MIPS R3000";
     case EM_S370:        	return "IBM System/370";
-    case EM_MIPS_RS4_BE: 	return "MIPS R4000 big-endian";
     case EM_OLD_SPARCV9:	return "Sparc v9 (old)";
     case EM_PARISC:      	return "HPPA";
     case EM_PPC_OLD:		return "Power PC (old)";
@@ -1537,7 +1533,6 @@
 	  break;
 
 	case EM_MIPS:
-	case EM_MIPS_RS4_BE:
 	  if (e_flags & EF_MIPS_NOREORDER)
 	    strcat (buf, ", noreorder");
 
@@ -1752,7 +1747,6 @@
 	  switch (elf_header.e_machine)
 	    {
 	    case EM_MIPS:
-	    case EM_MIPS_RS4_BE:
 	      result = get_mips_segment_type (p_type);
 	      break;
 	    case EM_PARISC:
@@ -1918,7 +1912,6 @@
 	  switch (elf_header.e_machine)
 	    {
 	    case EM_MIPS:
-	    case EM_MIPS_RS4_BE:
 	      result = get_mips_section_type_name (sh_type);
 	      break;
 	    case EM_PARISC:
@@ -4213,7 +4206,6 @@
 	      switch (elf_header.e_machine)
 		{
 		case EM_MIPS:
-		case EM_MIPS_RS4_BE:
 		  dynamic_segment_mips_val (entry);
 		  break;
 		case EM_PARISC:
@@ -8258,7 +8250,6 @@
   switch (elf_header.e_machine)
     {
     case EM_MIPS:
-    case EM_MIPS_RS4_BE:
       return process_mips_specific (file);
       break;
     default:
diff -urN binutils-cygnus/include/elf/common.h binutils/include/elf/common.h
--- binutils-cygnus/include/elf/common.h	Wed May  9 23:50:21 2001
+++ binutils/include/elf/common.h	Wed May  9 23:46:09 2001
@@ -105,7 +105,6 @@
 #define EM_860		7	/* Intel 80860 */
 #define EM_MIPS		8	/* MIPS R3000 (officially, big-endian only) */
 #define EM_S370		9	/* IBM System/370 */
-#define EM_MIPS_RS4_BE 10	/* MIPS R4000 big-endian */ /* Depreciated */
 #define EM_MIPS_RS3_LE 10	/* MIPS R3000 little-endian (Oct 4 1999 Draft)*/ /* Depreciated */
 
 #define EM_PARISC      15	/* HPPA */


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]