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]

patch xcoff.h


I am going to check this in shortly

The new section names are to support a patch I wil be making shorty in
coffcode.h sec_to_styp_flags().

The xcoff_big_format_p macro has beefed up to check for null ardata.
This fixes a problem with cross built xcoff binutils.


--
Tom Rix
GCC Engineer
trix@redhat.com


2001-12-17  Tom Rix  <trix@redhat.com>

	* xcoff.h :  Add .except and .typchk section string.  
	Fix xcoff_big_format_p macro.  

Index: include/coff/xcoff.h
===================================================================
RCS file: /cvs/src/src/include/coff/xcoff.h,v
retrieving revision 1.5
diff -c -p -c -p -r1.5 xcoff.h
*** xcoff.h	2001/12/17 13:13:33	1.5
--- xcoff.h	2001/12/17 22:16:45
***************
*** 31,36 ****
--- 31,38 ----
  #define _BSS	".bss"
  #define _PAD	".pad"
  #define _LOADER	".loader"
+ #define _EXCEPT ".except"
+ #define _TYPCHK ".typchk"
  
  /* XCOFF uses a special .loader section with type STYP_LOADER.  */
  #define STYP_LOADER 0x1000
*************** struct xcoff_ar_hdr_big
*** 591,597 ****
     Make it a bit cleaner.  We can use `xcoff_ardata' here because the
     `hdr' member has the same size and position in both formats.  */
  #define xcoff_big_format_p(abfd) \
!   (xcoff_ardata (abfd)->magic[1] == 'b')
  
  /* We store a copy of the xcoff_ar_file_hdr in the tdata field of the
     artdata structure.  Similar for the big archive.  */
--- 593,601 ----
     Make it a bit cleaner.  We can use `xcoff_ardata' here because the
     `hdr' member has the same size and position in both formats.  */
  #define xcoff_big_format_p(abfd) \
!   ((NULL != bfd_ardata(abfd)) && \
!    (NULL != xcoff_ardata(abfd)) && \
!    (xcoff_ardata (abfd)->magic[1] == 'b'))
  
  /* We store a copy of the xcoff_ar_file_hdr in the tdata field of the
     artdata structure.  Similar for the big archive.  */

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