This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
[PATCH] Let readelf recognize EF_MIPS_UCODE
- To: binutils at sources dot redhat dot com
- Subject: [PATCH] Let readelf recognize EF_MIPS_UCODE
- From: Thiemo Seufer <ica2_ts at csv dot ica dot uni-stuttgart dot de>
- Date: Tue, 21 Aug 2001 21:12:20 +0200
Hi All,
this lets readelf display a set EF_MIPS_UCODE flag as "ugen_reserved",
similiar to IRIX' elfdump tool.
Thiemo
2001-08-21 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
/binutils/ChangeLog
* readelf.c (get_machine_flags): Add detection of EF_MIPS_UCODE.
diff -BurpNX /bigdisk/src/binutils-exclude src-orig/binutils/readelf.c src/binutils/readelf.c
--- src-orig/binutils/readelf.c Sun Aug 12 13:34:57 2001
+++ src/binutils/readelf.c Sat Aug 18 22:42:16 2001
@@ -1574,6 +1574,9 @@ get_machine_flags (e_flags, e_machine)
if (e_flags & EF_MIPS_CPIC)
strcat (buf, ", cpic");
+ if (e_flags & EF_MIPS_UCODE)
+ strcat (buf, ", ugen_reserved");
+
if (e_flags & EF_MIPS_ABI2)
strcat (buf, ", abi2");