[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Binutils v2.21.1a ARM mrs disassembler.

From: Bill Pringlemeir
Subject: Binutils v2.21.1a ARM mrs disassembler.
Date: Wed, 9 May 2012 12:14:56 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux)

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 '
'--disable-werror' '--enable-ld=default' '--enable-gold=yes'
'--enable-plugins' '--with-pkgversion=crosstool-NG hg+-c7fa97debb36'
'--disable-multilib' '--disable-nls' '--with-float=soft'

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.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]