This is the mail archive of the binutils@sourceware.cygnus.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Patch to change ARM register name set


Hi Richard,

: > I like it.  OK here is a second revision of the patch, which
: > implements your suggestions above: 
: 
: Err, the documentation hasn't been updated to reflect this.

oops - assume that the patch ends like this:

Cheers
	Nick

Index: binutils/binutils.texi
===================================================================
RCS file: /cvs/binutils/binutils/binutils/binutils.texi,v
retrieving revision 1.4
diff -p -r1.4 binutils.texi
*** binutils.texi	1999/06/14 01:30:17	1.4
--- binutils.texi	1999/06/15 15:48:44
*************** objdump [ -a | --archive-headers ] 
*** 1137,1142 ****
--- 1137,1143 ----
          [ -j @var{section} | --section=@var{section} ]
          [ -l | --line-numbers ] [ -S | --source ]
          [ -m @var{machine} | --architecture=@var{machine} ]
+         [ -M @var{options} | --disassembler-options=@var{options}]
          [ -p | --private-headers ]
          [ -r | --reloc ] [ -R | --dynamic-reloc ]
          [ -s | --full-contents ]  [ --stabs ]
*************** Specify the architecture to use when dis
*** 1294,1299 ****
--- 1295,1315 ----
  can be useful when disassembling object files which do not describe
  architecture information, such as S-records.  You can list the available
  architectures with the @samp{-i} option.
+ 
+ @item -M @var{options}
+ @itemx --disassembler-options=@var{options}
+ Pass target specific information to the disassembler.  Only supported on
+ some targets.
+ 
+ If the target is an ARM architecture then this switch can be used to
+ select which register name set is used during disassembler.  Specifying
+ @samp{--disassembler-options=reg-name-std} (the default) will select the
+ register names as used in ARM's instruction set documentation, but with
+ register 13 called 'sp', register 14 called 'lr' and register 15 called
+ 'pc'.  Specifying @samp{--disassembler-options=reg-names-apcs} will
+ select the name set used by the ARM Procedure Call Standard, whilst
+ specifying @samp{--disassembler-options=reg-names-raw} will just use
+ @samp{r} followed by the register number.
  
  @item -p
  @itemx --private-headers

Index: binutils/NEWS
===================================================================
RCS file: /cvs/binutils/binutils/binutils/NEWS,v
retrieving revision 1.3
diff -p -r1.3 NEWS
*** NEWS	1999/06/12 15:42:04	1.3
--- NEWS	1999/06/15 15:48:44
***************
*** 2,7 ****
--- 2,12 ----
  
  Changes in binutils 2.10:
  
+ * New command line switch to objdump -M (or --disassembler-options) which takes
+   a parameter which can then be interpreted on a per-target basis by the
+   disassembler.  Used by ARM targets to select register name sets, ISA, APCS or
+   raw verions.
+   
  * objdump support for -mi386:intel which causes disassembly to be displayed
    with intel syntax.
  


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]