Mac-objdumpをインストールする



Macでobjdumpコマンドをインストールする

MacPortsで「binutils」をインストールすることで、「gobjdump」という同機能のコマンドが使用できます。

$ sudo port selfupdate
$ sudo port install binutils

binutils関連コマンドを確認する。

binutilsには、nmコマンドやstringコマンドが存在します。

$ port contents binutils
Port binutils contains:
  /opt/local/bin/gaddr2line
  /opt/local/bin/gar
  /opt/local/bin/gas
  /opt/local/bin/gc++filt
  /opt/local/bin/gelfedit
  /opt/local/bin/gnm
  /opt/local/bin/gobjcopy
  /opt/local/bin/gobjdump
  /opt/local/bin/granlib
  /opt/local/bin/greadelf
  /opt/local/bin/gsize
  /opt/local/bin/gstrings
  /opt/local/bin/gstrip
  /opt/local/i386-apple-darwin9.8.0/bin/ar
  /opt/local/i386-apple-darwin9.8.0/bin/as
  /opt/local/i386-apple-darwin9.8.0/bin/nm
  /opt/local/i386-apple-darwin9.8.0/bin/objcopy
  /opt/local/i386-apple-darwin9.8.0/bin/objdump
  /opt/local/i386-apple-darwin9.8.0/bin/ranlib
  /opt/local/i386-apple-darwin9.8.0/bin/strip
  /opt/local/include/ansidecl.h
  /opt/local/include/bfd.h
  /opt/local/include/bfdlink.h
  /opt/local/include/dis-asm.h
  /opt/local/include/symcat.h
  /opt/local/lib/libbfd-2.21.dylib
  /opt/local/lib/libbfd.a
  /opt/local/lib/libbfd.dylib
  /opt/local/lib/libbfd.la
  /opt/local/lib/libiberty.a
  /opt/local/lib/libopcodes-2.21.dylib
  /opt/local/lib/libopcodes.a
  /opt/local/lib/libopcodes.dylib
  /opt/local/lib/libopcodes.la
  /opt/local/share/info/as.info
  /opt/local/share/info/bfd.info
  /opt/local/share/info/binutils.info
  /opt/local/share/locale/bg/LC_MESSAGES/binutils.mo
  /opt/local/share/locale/da/LC_MESSAGES/bfd.mo
  /opt/local/share/locale/da/LC_MESSAGES/binutils.mo
  /opt/local/share/locale/da/LC_MESSAGES/opcodes.mo
  /opt/local/share/locale/de/LC_MESSAGES/opcodes.mo
  /opt/local/share/locale/es/LC_MESSAGES/bfd.mo
  /opt/local/share/locale/es/LC_MESSAGES/binutils.mo
  /opt/local/share/locale/es/LC_MESSAGES/gas.mo
  /opt/local/share/locale/es/LC_MESSAGES/opcodes.mo
  /opt/local/share/locale/fi/LC_MESSAGES/bfd.mo
  /opt/local/share/locale/fi/LC_MESSAGES/binutils.mo
  /opt/local/share/locale/fi/LC_MESSAGES/opcodes.mo
  /opt/local/share/locale/fr/LC_MESSAGES/bfd.mo
  /opt/local/share/locale/fr/LC_MESSAGES/binutils.mo
  /opt/local/share/locale/fr/LC_MESSAGES/gas.mo
  /opt/local/share/locale/fr/LC_MESSAGES/opcodes.mo
  /opt/local/share/locale/ga/LC_MESSAGES/opcodes.mo
  /opt/local/share/locale/id/LC_MESSAGES/bfd.mo
  /opt/local/share/locale/id/LC_MESSAGES/binutils.mo
  /opt/local/share/locale/id/LC_MESSAGES/gas.mo
  /opt/local/share/locale/id/LC_MESSAGES/opcodes.mo
  /opt/local/share/locale/ja/LC_MESSAGES/bfd.mo
  /opt/local/share/locale/ja/LC_MESSAGES/binutils.mo
  /opt/local/share/locale/nl/LC_MESSAGES/opcodes.mo
  /opt/local/share/locale/pt_BR/LC_MESSAGES/opcodes.mo
  /opt/local/share/locale/ro/LC_MESSAGES/bfd.mo
  /opt/local/share/locale/ro/LC_MESSAGES/binutils.mo
  /opt/local/share/locale/ro/LC_MESSAGES/opcodes.mo
  /opt/local/share/locale/ru/LC_MESSAGES/bfd.mo
  /opt/local/share/locale/ru/LC_MESSAGES/binutils.mo
  /opt/local/share/locale/ru/LC_MESSAGES/gas.mo
  /opt/local/share/locale/rw/LC_MESSAGES/bfd.mo
  /opt/local/share/locale/rw/LC_MESSAGES/binutils.mo
  /opt/local/share/locale/rw/LC_MESSAGES/gas.mo
  /opt/local/share/locale/sk/LC_MESSAGES/binutils.mo
  /opt/local/share/locale/sv/LC_MESSAGES/bfd.mo
  /opt/local/share/locale/sv/LC_MESSAGES/binutils.mo
  /opt/local/share/locale/sv/LC_MESSAGES/opcodes.mo
  /opt/local/share/locale/tr/LC_MESSAGES/bfd.mo
  /opt/local/share/locale/tr/LC_MESSAGES/binutils.mo
  /opt/local/share/locale/tr/LC_MESSAGES/gas.mo
  /opt/local/share/locale/tr/LC_MESSAGES/opcodes.mo
  /opt/local/share/locale/uk/LC_MESSAGES/binutils.mo
  /opt/local/share/locale/vi/LC_MESSAGES/bfd.mo
  /opt/local/share/locale/vi/LC_MESSAGES/binutils.mo
  /opt/local/share/locale/vi/LC_MESSAGES/opcodes.mo
  /opt/local/share/locale/zh_CN/LC_MESSAGES/bfd.mo
  /opt/local/share/locale/zh_CN/LC_MESSAGES/binutils.mo
  /opt/local/share/locale/zh_CN/LC_MESSAGES/opcodes.mo
  /opt/local/share/locale/zh_TW/LC_MESSAGES/binutils.mo
  /opt/local/share/man/man1/gaddr2line.1.gz
  /opt/local/share/man/man1/gar.1.gz
  /opt/local/share/man/man1/gas.1.gz
  /opt/local/share/man/man1/gc++filt.1.gz
  /opt/local/share/man/man1/gdlltool.1.gz
  /opt/local/share/man/man1/gelfedit.1.gz
  /opt/local/share/man/man1/gnlmconv.1.gz
  /opt/local/share/man/man1/gnm.1.gz
  /opt/local/share/man/man1/gobjcopy.1.gz
  /opt/local/share/man/man1/gobjdump.1.gz
  /opt/local/share/man/man1/granlib.1.gz
  /opt/local/share/man/man1/greadelf.1.gz
  /opt/local/share/man/man1/gsize.1.gz
  /opt/local/share/man/man1/gstrings.1.gz
  /opt/local/share/man/man1/gstrip.1.gz
  /opt/local/share/man/man1/gwindmc.1.gz
  /opt/local/share/man/man1/gwindres.1.gz


関連ページ



スポンサード リンク