[PATCH] Let readelf recognize EF_MIPS_UCODE

Thiemo Seufer ica2_ts@csv.ica.uni-stuttgart.de
Tue Aug 21 12:12:00 GMT 2001


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");
 



More information about the Binutils mailing list