After binutils
installation through brew install binutils
, if you still can not find gobjdump
in your $PATH, the reason perhaps is that homebrew
forgot to create soft link to the binary.
$ cd /opt/homebrew/bin
// $ ls -l ../Cellar/binutils/2.37/bin/gobjdump
// lrwxr-xr-x 1 steve admin 7 Jul 19 2021 ../Cellar/binutils/2.37/bin/gobjdump -> objdump
// change this command to fit your objdump binary path
$ link ../Cellar/binutils/2.37/bin/gobjdump gobjdump
My environment:
$ uname -a
Darwin localhost 20.5.0 Darwin Kernel Version 20.5.0: Sat May 8 05:10:31 PDT 2021; root:xnu-7195.121.3~9/RELEASE_ARM64_T8101 arm64
$ brew --version
Homebrew 3.4.3
Homebrew/homebrew-core (git revision 1f841cb3044; last commit 2022-03-27)
Homebrew/homebrew-cask (git revision 60208d8c20; last commit 2022-03-26)