This is the mail archive of the 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: Getting rid of a lot of redundant code to set ELF machine codes

On Sep 12, 2001, Alexandre Oliva <> wrote:

> While I was at it, I noticed that some of the machines for which
> EM_CYGNUS_* numbers were picked at random have now (or a long time
> ago) gained official numbers, so I went ahead and introduced the new
> numbers, but kept the old ones as aliases.

> 	EM_MN10200, EM_OPENRISC, EM_ARC_A5, EM_XTENSA): Defined as in
> 	the current ELF standard.

Frank Ch. Eigler pointed out to me in private that I missed the
duplicate definition of EM_OPENRISC, fixed thusly.  No patch for
readelf.c because there are no references to OPENRISC in it.

Ok to install?

Index: include/elf/ChangeLog
from  Alexandre Oliva  <>

	* common.h (EM_OPENRISC_OLD): Renamed the old EM_OPENRISC entry.

Index: include/elf/common.h
RCS file: /cvs/src/src/include/elf/common.h,v
retrieving revision 1.33
diff -u -p -r1.33 common.h
--- include/elf/common.h 2001/09/12 23:53:09 1.33
+++ include/elf/common.h 2001/09/13 03:26:07
@@ -231,7 +231,7 @@ Foundation, Inc., 59 Temple Place - Suit
 /* OpenRISC magic number
    Written in the absense of an ABI.  */
-#define EM_OPENRISC		0x3426
+#define EM_OPENRISC_OLD		0x3426
 /* See the above comment before you add a new EM_* value here.  */
Index: bfd/ChangeLog
from  Alexandre Oliva  <>

	* elf32-openrisc.c (ELF_MACHINE_ALT1): Define as EM_OPENRISC_OLD.

Index: bfd/elf32-openrisc.c
RCS file: /cvs/src/src/bfd/elf32-openrisc.c,v
retrieving revision 1.3
diff -u -p -r1.3 elf32-openrisc.c
--- bfd/elf32-openrisc.c 2001/08/25 09:47:34 1.3
+++ bfd/elf32-openrisc.c 2001/09/13 03:26:11
@@ -638,6 +638,7 @@ openrisc_elf_final_write_processing (abf
 #define ELF_ARCH			bfd_arch_openrisc
 #define ELF_MAXPAGESIZE			0x1000
 #define TARGET_BIG_SYM			bfd_elf32_openrisc_vec

Alexandre Oliva   Enjoy Guarana', see
Red Hat GCC Developer                  aoliva@{,}
CS PhD student at IC-Unicamp        oliva@{,}
Free Software Evangelist    *Please* write to mailing lists, not to me

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