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]

xcoff64 include-coff-internal.h.patch




internal.h : promote 32 bit structure elements to 64 bit for xcoff64 support

----------------------------------------------------------------------------
--

diff -rcp sources-original/src/include/coff/internal.h
sources/src/include/coff/internal.h
*** sources-original/src/include/coff/internal.h	Sat Jan 20 00:28:30 2001
--- sources/src/include/coff/internal.h	Mon Jan 22 14:37:23 2001
*************** struct internal_aouthdr
*** 158,164 ****
    unsigned long tagentries;	/* number of tag entries to follow */

    /* RS/6000 stuff */
!   unsigned long o_toc;		/* address of TOC			*/
    short o_snentry;		/* section number for entry point */
    short o_sntext;		/* section number for text	*/
    short o_sndata;		/* section number for data	*/
--- 158,164 ----
    unsigned long tagentries;	/* number of tag entries to follow */

    /* RS/6000 stuff */
!   bfd_vma o_toc;                /* address of TOC */
    short o_snentry;		/* section number for entry point */
    short o_sntext;		/* section number for text	*/
    short o_sndata;		/* section number for data	*/
*************** struct internal_aouthdr
*** 169,176 ****
    short o_algndata;		/* max alignment for data	*/
    short o_modtype;		/* Module type field, 1R,RE,RO	*/
    short o_cputype;		/* Encoded CPU type		*/
!   unsigned long o_maxstack;	/* max stack size allowed.	*/
!   unsigned long o_maxdata;	/* max data size allowed.	*/

    /* ECOFF stuff */
    bfd_vma bss_start;		/* Base of bss section.		*/
--- 169,176 ----
    short o_algndata;		/* max alignment for data	*/
    short o_modtype;		/* Module type field, 1R,RE,RO	*/
    short o_cputype;		/* Encoded CPU type		*/
!   bfd_vma o_maxstack;	        /* max stack size allowed.	*/
!   bfd_vma o_maxdata;	        /* max data size allowed.	*/

    /* ECOFF stuff */
    bfd_vma bss_start;		/* Base of bss section.		*/
*************** struct internal_lineno
*** 348,355 ****
  {
    union
    {
!     long l_symndx;		/* function name symbol index, iff l_lnno == 0*/
!     long l_paddr;		/* (physical) address of line number	*/
    }     l_addr;
    unsigned long l_lnno;		/* line number		*/
  };
--- 348,355 ----
  {
    union
    {
!     bfd_signed_vma l_symndx;		/* function name symbol index, iff l_lnno ==
0*/
!     bfd_signed_vma l_paddr;	/* (physical) address of line number	*/
    }     l_addr;
    unsigned long l_lnno;		/* line number		*/
  };
*************** struct internal_syment
*** 364,378 ****
  {
    union
    {
!     char _n_name[SYMNMLEN];	/* old COFF version	*/
      struct
      {
!       long _n_zeroes;		/* new == 0		*/
!       long _n_offset;		/* offset into string table */
      }      _n_n;
      char *_n_nptr[2];		/* allows for overlaying	*/
    }     _n;
!   long n_value;			/* value of symbol		*/
    short n_scnum;		/* section number		*/
    unsigned short n_flags;	/* copy of flags from filhdr	*/
    unsigned short n_type;	/* type and derived type	*/
--- 364,380 ----
  {
    union
    {
!     char _n_name[SYMNMLEN];	/* old COFF version	        */
      struct
      {
!       long _n_zeroes;		/* new == 0		        */
!       long _n_offset;		/* offset into string table     */
      }      _n_n;
      char *_n_nptr[2];		/* allows for overlaying	*/
    }     _n;
!
!   bfd_vma n_value;		/* value of symbol		*/
!
    short n_scnum;		/* section number		*/
    unsigned short n_flags;	/* copy of flags from filhdr	*/
    unsigned short n_type;	/* type and derived type	*/
*************** union internal_auxent
*** 461,470 ****
      union
      {
        struct
!       {				/* if ISFCN, tag, or .bb */
! 	long x_lnnoptr;		/* ptr to fcn line # */
  	union
! 	{			/* entry ndx past block end */
  	  long l;
  	  struct coff_ptr_struct *p;
  	}     x_endndx;
--- 463,472 ----
      union
      {
        struct
!       {				        /* if ISFCN, tag, or .bb */
! 	bfd_signed_vma x_lnnoptr;	/* ptr to fcn line # */
  	union
! 	{			        /* entry ndx past block end */
  	  long l;
  	  struct coff_ptr_struct *p;
  	}     x_endndx;
*************** union internal_auxent
*** 513,519 ****
    {
      union
        {				/* csect length or enclosing csect */
! 	long l;
  	struct coff_ptr_struct *p;
        } x_scnlen;
      long x_parmhash;		/* parm type hash index */
--- 515,521 ----
    {
      union
        {				/* csect length or enclosing csect */
! 	bfd_signed_vma l;
  	struct coff_ptr_struct *p;
        } x_scnlen;
      long x_parmhash;		/* parm type hash index */


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