Added '-' parameter to fix strings command using gcc-llvm on Mac OS 10.6 w/ Xcode 4.2.
Change-Id: Ib44c17c92fd67e8ffe3f34fa9c6014d8f0d861a8 Reviewed-by: Harald Fernengel <harald.fernengel@nokia.com>
This commit is contained in:
parent
a05270f435
commit
d7208aa0c6
@ -31,10 +31,10 @@ else
|
||||
exit 2
|
||||
fi
|
||||
|
||||
if strings $binary | grep LeastSignificantByteFirst >/dev/null 2>&1; then
|
||||
if strings - $binary | grep LeastSignificantByteFirst >/dev/null 2>&1; then
|
||||
[ "$VERBOSE" = "yes" ] && echo " Found 'LeastSignificantByteFirst' in binary"
|
||||
ENDIAN="LITTLE"
|
||||
elif strings $binary | grep MostSignificantByteFirst >/dev/null 2>&1; then
|
||||
elif strings - $binary | grep MostSignificantByteFirst >/dev/null 2>&1; then
|
||||
[ "$VERBOSE" = "yes" ] && echo " Found 'MostSignificantByteFirst' in binary"
|
||||
ENDIAN="BIG"
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user