This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Handle EM_S390_OLD
- To: binutils at sources dot redhat dot com
- Subject: Handle EM_S390_OLD
- From: Andreas Jaeger <aj at suse dot de>
- Date: 11 Mar 2001 16:38:56 +0100
binutils that have been in use for Linux/S390 before the patches got
introduced into CVS use EM_S390_OLD instead of EM_S390. IMO we should
recognize such binaries in readelf also.
Ok to commit the appended patch to the mainline?
Andreas
2001-03-11 Andreas Jaeger <aj@suse.de>
* readelf.c (guess_is_rela): Handle EM_S390_OLD.
(dump_relocations): Likewise.
(get_machine_name): Likewise.
============================================================
Index: binutils/readelf.c
--- binutils/readelf.c 2001/02/28 19:40:12 1.93
+++ binutils/readelf.c 2001/03/11 15:36:37
@@ -585,6 +585,7 @@
case EM_860:
case EM_X86_64:
case EM_S390:
+ case EM_S390_OLD:
return TRUE;
case EM_MMA:
@@ -942,6 +943,7 @@
break;
case EM_S390:
+ case EM_S390_OLD:
rtype = elf_s390_reloc_type (type);
break;
}
@@ -1325,6 +1327,7 @@
case EM_PRISM: return "SiTera Prism";
case EM_X86_64: return "Advanced Micro Devices X86-64";
case EM_S390: return "IBM S/390";
+ case EM_S390_OLD: return "IBM S/390";
default:
sprintf (buff, _("<unknown>: %x"), e_machine);
return buff;
--
Andreas Jaeger
SuSE Labs aj@suse.de
private aj@arthur.inka.de
http://www.suse.de/~aj