I use the arm-none-eabi-objdump Decompile a binary file,it not supported My architecture is : armv7m I use the cmd: arm-none-eabi-objdump -D -b binary -m armv7m file.bin > file.asm I use the cmd: arm-none-eabi-objdump --help Get the following information: arm-none-eabi-objdump: supported architectures: arm armv2 armv2a armv3 armv3m armv4 armv4t armv5 armv5t armv5te xscale ep9312 iwmmxt iwmmxt2 plugin It not supported architectures armv7m
The arm-none-eabi-objdump version is : GNU objdump (GNU Tools for ARM Embedded Processors) 2.26.0.20160310 Copyright (C) 2015 Free Software Foundation, Inc. This program is free software; you may redistribute it under the terms of the GNU General Public License version 3 or (at your option) any later version. This program has absolutely no warranty.
Hi Shilin, > arm-none-eabi-objdump -D -b binary -m armv7m file.bin > file.asm > It not supported architectures armv7m This is because the -m option to objdump (and other, similar binutils tools) is out of date. I am not sure if it is worth adding in all of the possible new architecture variants, but I have created a patch that adds in an "arm_any" machine type. This will objdump to disassemble the file with all architecture types and extensions enabled. Will this be sufficient ? Cheers Nick
The master branch has been updated by Nick Clifton <nickc@sourceware.org>: https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=99914dfd71d74bc700bb6d15647895ac0c8cc8e1 commit 99914dfd71d74bc700bb6d15647895ac0c8cc8e1 Author: Nick Clifton <nickc@redhat.com> Date: Thu Jun 2 17:17:03 2016 +0100 Add "arm_any" architecture type to allow -m option to various binutils to match any ARM architecture. PR target/20088 * cpu-arm.c (processors): Add "arm_any" type to match any ARM architecture. (arch_info_struct): Likewise. (architectures): Likewise.
patch applied