This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
[PATCH] Remove misleading readelf MIPS output
- From: Thiemo Seufer <ica2_ts at csv dot ica dot uni-stuttgart dot de>
- To: binutils at sources dot redhat dot com
- Date: Mon, 3 Dec 2001 10:28:37 +0100
- Subject: [PATCH] Remove misleading readelf MIPS output
Hi All,
this prevents readelf to output "UNKNOWN" for every object file
which isn't compiled for one of the CPU's noted in the ELF header.
This prevents confusion with other possibly undetected header flags.
Thiemo
2001-11-30 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
/binutils/ChangeLog
* readelf.c (get_machine_flags): Remove misleading output.
diff -BurpN source-orig/binutils/readelf.c source/binutils/readelf.c
--- source-orig/binutils/readelf.c Sun Nov 25 04:26:52 2001
+++ source/binutils/readelf.c Thu Nov 29 10:23:46 2001
@@ -1655,7 +1655,7 @@ get_machine_flags (e_flags, e_machine)
case E_MIPS_MACH_4650: strcat (buf, ", 4650"); break;
case E_MIPS_MACH_4111: strcat (buf, ", 4111"); break;
case E_MIPS_MACH_SB1: strcat (buf, ", sb1"); break;
- default: strcat (buf, " UNKNOWN"); break;
+ default: /* No CPU specific code. */ break;
}
break;