[PATCH] Make readelf correctly print out machine name for Blackfin

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[PATCH] Make readelf correctly print out machine name for Blackfin

jiez
This small patch will make readelf correctly print out machine name for
Blackfin.

Is it OK?

Thanks,
Jie



        * readelf.c (get_machine_name): Add case for Blackfin.

Index: readelf.c
===================================================================
RCS file: /cvs/src/src/binutils/readelf.c,v
retrieving revision 1.327
diff -u -p -r1.327 readelf.c
--- readelf.c 12 Dec 2005 11:25:02 -0000 1.327
+++ readelf.c 30 Dec 2005 06:25:19 -0000
@@ -1688,6 +1688,7 @@ get_machine_name (unsigned e_machine)
     case EM_XTENSA: return "Tensilica Xtensa Processor";
     case EM_M32C:        return "Renesas M32c";
     case EM_MS1:                return "Morpho Techologies MS1 processor";
+    case EM_BLACKFIN: return "Analog Devices Blackfin";
     default:
       snprintf (buff, sizeof (buff), _("<unknown>: %x"), e_machine);
       return buff;


Reply | Threaded
Open this post in threaded view
|

Re: [PATCH] Make readelf correctly print out machine name for Blackfin

Eric Christopher-2

On Dec 29, 2005, at 10:47 PM, Jie Zhang wrote:

> This small patch will make readelf correctly print out machine name  
> for
> Blackfin.
>
> Is it OK?

I think this counts as obvious.

-eric
Reply | Threaded
Open this post in threaded view
|

Re: [PATCH] Make readelf correctly print out machine name for Blackfin

jiez
Eric Christopher wrote:

>
> On Dec 29, 2005, at 10:47 PM, Jie Zhang wrote:
>
>> This small patch will make readelf correctly print out machine name  for
>> Blackfin.
>>
>> Is it OK?
>
>
> I think this counts as obvious.
>
Thanks. Committed.

Jie