I have issues decoding 'mrs sp,spsr' with objdump for an ARM target. 00000000 <irq_handler>: 0: e14fd000 .word 0xe14fd000
I only pass '--disassemble'. The objdump was built with 'crosstool-ng'. Here are my configure args. [INFO ] Installing binutils [EXTRA] Configuring binutils [DEBUG] Extra config passed: '--enable-ld=default --enable-gold=yes --enable-plugins --with-pkgversion=crosstool-NG hg+-c7fa97debb36 --disable-multilib --disable-nls' [DEBUG] ==> Executing: 'CFLAGS= -pipe ' 'CXXFLAGS= -pipe ' '/home/bpringlemeir/crosstool-arm-4.6.3/.build/src/binutils-2.21.1a/configure' '--build=x86_64-build_unknown-linux-gnu' '--host=x86_64-build_unknown-linux-gnu' '--target=arm-none-linux-gnueabi' '--prefix=/home/bpringlemeir/x-tools/arm-none-linux-gnueabi' '--disable-werror' '--enable-ld=default' '--enable-gold=yes' '--enable-plugins' '--with-pkgversion=crosstool-NG hg+-c7fa97debb36' '--disable-multilib' '--disable-nls' '--with-float=soft' '--with-sysroot=/home/bpringlemeir/x-tools/arm-none-linux-gnueabi/arm-none-linux-gnueabi/sysroot' Here is objdump --version... GNU objdump (crosstool-NG hg+-c7fa97debb36) 2.21.1 Copyright 2011 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. According the the ARM ARM the 'mrs' encoding is, | cond | 0 0 0 1 | 0 R 0 0 | 1 1 1 1 | Rd | 0 0 0 0 | 0 0 0 0 | 0 0 0 0 I think maybe R = 1 and/or Rd =13/sp is confusing the decoder. I don't know where this stuff lives. I have downloaded the 2.22, but I have not built it. Could someone point me to some code and/or a changelog where this might have already been addressed? Or if someone has a latest binutils for an ARM-elf, could they see if decoding '0xe14fd000' works? Note crosstool-ng has some patches to binutils, but they are configure and elf processing and not to anything related to instruction decoding. Thanks for any help, Bill Pringlemeir. _______________________________________________ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils