On Mon, Nov 03, 2014 at 04:45:10PM -0500, Mike Frysinger wrote:
> we should delete the uname logic entirely.  how about instead we use `readelf 
> -h` and look at the Data field.

That's a good idea, although 'lscpu' is even easier to use.  But what if lscpu
or readelf are not installed?

~]$ uname -m
ppc64
~]$ lscpu | grep Byte.Order
Byte Order:            Big Endian
~]# readelf -h /usr/bin/readelf | grep Data
  Data:                              2's complement, big endian


~]$ uname -m
x86_64
~]$ lscpu | grep Byte.Order
Byte Order:            Little Endian
~]$ readelf -h /usr/bin/readelf | grep Data
  Data:                              2's complement, little endian


-- 
Jeff

Attachment: pgpbwtxjjJTb6.pgp
Description: PGP signature

------------------------------------------------------------------------------
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to