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]

Patch to include/aout/aout64.h so a target can define RELOC_..._BITS_...


> Date: 6 Mar 2000 13:22:16 -0500
> From: Ian Lance Taylor <ian@zembu.com>

>    I'd like to submit a patch to include/aout/aout64.h that
>    conditionalizes these macro settings, so a target can define
>    them before including e.g. aout32.h.  It seems all users are
>    static functions, so a multi-target BFD should not break.
> 
> It's OK with me to add #ifndef/#endif around these macro definitions.

Here it is.  This is the first in a set of a few patches to pave
the way for the CRIS port, which now correctly runs its testsuite
using the CVS binutils (wheee!).  It would be nice to make the
2.10 train.

Fri Mar 10 23:13:47 2000  Hans-Peter Nilsson  <hp@axis.se>

	* aout64.h (RELOC_EXT_BITS_EXTERN_BIG): Wrap definition in #ifndef.
	(RELOC_EXT_BITS_EXTERN_LITTLE): Ditto.
	(RELOC_EXT_BITS_TYPE_BIG): Ditto.
	(RELOC_EXT_BITS_TYPE_SH_BIG): Ditto.
	(RELOC_EXT_BITS_TYPE_LITTLE): Ditto.
	(RELOC_EXT_BITS_TYPE_SH_LITTLE): Ditto.

Index: include/aout/aout64.h
===================================================================
RCS file: /cvs/src/src/include/aout/aout64.h,v
retrieving revision 1.2
diff -c -p -r1.2 aout64.h
*** aout64.h	1999/07/12 11:12:37	1.2
--- aout64.h	2000/03/10 22:09:44
*************** struct reloc_ext_external {
*** 388,400 ****
--- 388,416 ----
    bfd_byte r_addend[BYTES_IN_WORD];	/* datum addend				*/
  };
  
+ #ifndef RELOC_EXT_BITS_EXTERN_BIG
  #define	RELOC_EXT_BITS_EXTERN_BIG	((unsigned int) 0x80)
+ #endif
+ 
+ #ifndef RELOC_EXT_BITS_EXTERN_LITTLE
  #define	RELOC_EXT_BITS_EXTERN_LITTLE	((unsigned int) 0x01)
+ #endif
  
+ #ifndef RELOC_EXT_BITS_TYPE_BIG
  #define	RELOC_EXT_BITS_TYPE_BIG		((unsigned int) 0x1F)
+ #endif
+ 
+ #ifndef RELOC_EXT_BITS_TYPE_SH_BIG
  #define	RELOC_EXT_BITS_TYPE_SH_BIG	0
+ #endif
+ 
+ #ifndef RELOC_EXT_BITS_TYPE_LITTLE
  #define	RELOC_EXT_BITS_TYPE_LITTLE	((unsigned int) 0xF8)
+ #endif
+ 
+ #ifndef RELOC_EXT_BITS_TYPE_SH_LITTLE
  #define	RELOC_EXT_BITS_TYPE_SH_LITTLE	3
+ #endif
  
  /* Bytes per relocation entry */
  #define	RELOC_EXT_SIZE	(BYTES_IN_WORD + 3 + 1 + BYTES_IN_WORD)

brgds, H-P

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