add EM_OPENRISC again to elf.h
authorSzabolcs Nagy <nsz@port70.net>
Wed, 20 Apr 2016 11:14:13 +0000 (13:14 +0200)
committerRich Felker <dalias@aerifal.cx>
Sun, 3 Jul 2016 20:11:05 +0000 (16:11 -0400)
it was changed to EM_OR1K in 200d15479c0bc48471ee7b8e538ce33af990f82e
as that was meant to be the official name, but glibc and the latest
gabi spec still uses the EM_OPENRISC name:
http://www.sco.com/developers/gabi/latest/ch4.eheader.html
binutils defines both macros so we should do the same for backward
compatibility.

include/elf.h

index 8b3cd3ed3f2dbb7b6edff7a75e0cfd9cee813af4..745d8998e9b91447b65647e76aa74876c7ab5ee1 100644 (file)
@@ -210,6 +210,7 @@ typedef struct {
 #define EM_MN10200     90
 #define EM_PJ          91
 #define EM_OR1K                92
+#define EM_OPENRISC    92
 #define EM_ARC_A5      93
 #define EM_XTENSA      94
 #define EM_AARCH64     183