This is the mail archive of the binutils@sources.redhat.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]
Other format: [Raw text]

[pathc] Re: objdump and -z recommendation


Ben Elliston wrote:
The comment near #define SKIP_ZEROES says "The number is arbitrarily
chosen".  Therefore, I think it would be reasonable to propose to
increase this to 32.  Your architecture is not the first, and will not
be the last, to use an all-zero encoding for valid opcodes.
Here you go...

Svein


binutils/Changelog
2002-10-23  Svein E. Seldal  <Svein.Seldal@solidas.com>

	* objdump.c : Increase the SKIP_ZEROES to 32 to make it possible
	  to decode 32-bit, all-zero, instructions.

Index: binutils/objdump.c
===================================================================
RCS file: /prosjekt/gnu/src/src/binutils/objdump.c,v
retrieving revision 1.60
diff -c -3 -p -r1.60 objdump.c
*** binutils/objdump.c	21 Oct 2002 02:18:58 -0000	1.60
--- binutils/objdump.c	23 Oct 2002 07:07:40 -0000
*************** objdump_sprintf VPARAMS ((SFILE *f, cons
*** 1139,1145 ****
     The number is arbitrarily chosen.  */
  
  #ifndef SKIP_ZEROES
! #define SKIP_ZEROES (8)
  #endif
  
  /* The number of zeroes to skip at the end of a section.  If the
--- 1139,1145 ----
     The number is arbitrarily chosen.  */
  
  #ifndef SKIP_ZEROES
! #define SKIP_ZEROES (32)
  #endif
  
  /* The number of zeroes to skip at the end of a section.  If the

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