parseelf: Add comment about getting number of symbols from DT_HASH

Also, make the format endianess-aware.

BUG=chromium:668568
TEST=sudo /mnt/host/source/chromite/bin/test_image --board cyan \
          chromiumos_base_image_R57-9019.0.0-rc1.bin

Change-Id: I86358b985a44eb7e04e2f27786a05abd20cf8c7e
Previous-Reviewed-on: https://chromium-review.googlesource.com/414848
(cherry picked from commit 5d61a1ffd31f058a71e93f83a3300711d064b637)
Reviewed-on: https://chromium-review.googlesource.com/414712
Reviewed-by: Nicolas Boichat <drinkcat@chromium.org>
Commit-Queue: Nicolas Boichat <drinkcat@chromium.org>
Tested-by: Nicolas Boichat <drinkcat@chromium.org>
Trybot-Ready: Nicolas Boichat <drinkcat@chromium.org>
1 file changed