embedded - How to compile objdump for the m32c architecture -
i use objdump view binary m32c files. when type in: objdump -i
architecture list returned i386 based. looking @ source code binutils appears m32c architecture supported, not compiled in default.
i've seen arm-none-eabi-objdump
embedded arm market. create compiled version of objdump m32c architecture. has done similar?
building binutils specific target pretty straightforward. if binutils hosted on windows, need install mingw/gcc , msys shell environment. within linux bash shell or msys on windows:
- create directory build tools ()
- create directory install tools ()
- extract binutils package , hereafter refers binutils verion building, , indicated in package name (binutils-.tar.bz2)
- working , configure package appropriate target , host:
../binutils-<version>/configure --target m32c-elf --prefix <installdir>
in windows can add configure command line --enable-win32-registry=gnu_m32c
allow path lookup via registry. toolchain name gnu_m32c
arbitrary - can call like.
- run
make
build tools. - run
make install-strip
install tools.
note:
if installing on windows , used --enable-win32-registry
option subsequently choose move installation, or installing pre-build tools on new host, need modify registry match; can done in regedit editing key hkey_local_machine\software\free software foundation\gnu_m32c
, adding/modifying item:"binutils"="<installdir>"
if have installed gcc there related keys:
"gcc"="<gccinstalldir>" "g++"="<gppinstalldir>"
Comments
Post a Comment