[PATCH] Remove misleading readelf MIPS output
Thiemo Seufer
ica2_ts@csv.ica.uni-stuttgart.de
Mon Dec 3 01:28:00 GMT 2001
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;
More information about the Binutils
mailing list