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 typck and except sections.


This patch minimally handles .typchk and .except sections.   This is
needed for doing objcopy/strip on native AIX apps.

I am going to check this in shortly.

--
Tom Rix
GCC Engineer
trix@redhat.com


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

	* coffcode.h (sec_to_styp_flags): Add STYP_EXCEPT and STYP_TYPCHK for 
	xcoff.
 
Index: bfd/coffcode.h
===================================================================
RCS file: /cvs/src/src/bfd/coffcode.h,v
retrieving revision 1.64
diff -c -p -c -p -r1.64 coffcode.h
*** coffcode.h	2001/10/10 12:08:27	1.64
--- coffcode.h	2001/12/18 00:05:19
*************** sec_to_styp_flags (sec_name, sec_flags)
*** 428,433 ****
--- 428,441 ----
      {
        styp_flags = STYP_LOADER;
      }
+   else if (!strcmp (sec_name, _EXCEPT))
+     {
+       styp_flags = STYP_EXCEPT;
+     }
+   else if (!strcmp (sec_name, _TYPCHK))
+     {
+       styp_flags = STYP_TYPCHK;
+     }
  #endif
    /* Try and figure out what it should be */
    else if (sec_flags & SEC_CODE)


2001-12-17  Tom Rix  <trix@redhat.com>
  
 	* xcoff.h :  Add .except and .typchk section string and styp flags.
  	Fix xcoff_big_format_p macro.  
  
Index: include/coff/xcoff.h
===================================================================
RCS file: /cvs/src/src/include/coff/xcoff.h,v
retrieving revision 1.6
diff -c -p -c -p -r1.6 xcoff.h
*** xcoff.h	2001/12/17 22:41:02	1.6
--- xcoff.h	2001/12/18 00:05:20
***************
*** 44,49 ****
--- 44,58 ----
     another section header with STYP_OVRFLO set.  */
  #define STYP_OVRFLO 0x8000
  
+ /* Specifies an exception section.  A section of this type provides 
+    information to identify the reason that a trap or ececptin occured within 
+    and executable object program */
+ #define STYP_EXCEPT 0x0100
+ 
+ /* Specifies a type check section.  A section of this type contains parameter 
+    argument type check strings used by the AIX binder.  */
+ #define STYP_TYPCHK 0x4000
+ 
  #define	RS6K_AOUTHDR_OMAGIC 0x0107 /* old: text & data writeable */
  #define	RS6K_AOUTHDR_NMAGIC 0x0108 /* new: text r/o, data r/w */
  #define	RS6K_AOUTHDR_ZMAGIC 0x010B /* paged: text r/o, both page-aligned */

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