Skip to content

Commit

Permalink
Update bits-info.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
ale5000-git authored Sep 27, 2024
1 parent 0e89ad1 commit 9086c8e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tools/bits-info.sh
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ check_bitness_of_file()
fi

if _header="$(dump_hex "${1:?}" '4' '0')"; then
echo "__${_header?}__"
case "${_header?}" in
'feedface' | 'cefaedfe') printf '%s\n' '32-bit magic' ;; # MH_MAGIC / MH_CIGAM
'feedfacf' | 'cffaedfe') printf '%s\n' '64-bit magic' ;; # MH_MAGIC_64 / MH_CIGAM_64
Expand Down

0 comments on commit 9086c8e

Please sign in to comment.