This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


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

More column zero patches for svr4.h



	* config/svr4.h (CTORS_SECTION_ASM_OP): Do not emit directives in
	column zero.
	(DTORS_SECTION_ASM_OP, INIT_SECTION_ASM_OP): Likewise.
	(FINI_SECTION_ASM_OP, ASM_OUTPUT_SECTION_NAME): Likewise.
	
Index: svr4.h
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/config/svr4.h,v
retrieving revision 1.14
diff -c -3 -p -r1.14 svr4.h
*** svr4.h	1999/07/16 19:50:13	1.14
--- svr4.h	1999/07/26 06:05:01
*************** do {									\
*** 457,464 ****
     errors unless the .ctors and .dtors sections are marked as writable
     via the SHF_WRITE attribute.)  */
  
! #define CTORS_SECTION_ASM_OP	".section\t.ctors,\"aw\""
! #define DTORS_SECTION_ASM_OP	".section\t.dtors,\"aw\""
  
  /* On svr4, we *do* have support for the .init and .fini sections, and we
     can put stuff in there to be executed before and after `main'.  We let
--- 457,464 ----
     errors unless the .ctors and .dtors sections are marked as writable
     via the SHF_WRITE attribute.)  */
  
! #define CTORS_SECTION_ASM_OP	"\t.section\t.ctors,\"aw\""
! #define DTORS_SECTION_ASM_OP	"\t.section\t.dtors,\"aw\""
  
  /* On svr4, we *do* have support for the .init and .fini sections, and we
     can put stuff in there to be executed before and after `main'.  We let
*************** do {									\
*** 466,473 ****
     The definitions say how to change sections to the .init and .fini
     sections.  This is the same for all known svr4 assemblers.  */
  
! #define INIT_SECTION_ASM_OP	".section\t.init"
! #define FINI_SECTION_ASM_OP	".section\t.fini"
  
  /* A default list of other sections which we might be "in" at any given
     time.  For targets that use additional sections (e.g. .tdesc) you
--- 466,473 ----
     The definitions say how to change sections to the .init and .fini
     sections.  This is the same for all known svr4 assemblers.  */
  
! #define INIT_SECTION_ASM_OP	"\t.section\t.init"
! #define FINI_SECTION_ASM_OP	"\t.section\t.fini"
  
  /* A default list of other sections which we might be "in" at any given
     time.  For targets that use additional sections (e.g. .tdesc) you
*************** do {									\
*** 567,580 ****
        s->type = type;							\
        s->next = sections;						\
        sections = s;							\
!       fprintf (FILE, ".section\t%s,\"%s\",@progbits\n", NAME, mode);	\
      }									\
    else									\
      {									\
        if (DECL && s->type != type)					\
  	error_with_decl (DECL, "%s causes a section type conflict");	\
  									\
!       fprintf (FILE, ".section\t%s\n", NAME);				\
      }									\
  } while (0)
  
--- 567,580 ----
        s->type = type;							\
        s->next = sections;						\
        sections = s;							\
!       fprintf (FILE, "\t.section\t%s,\"%s\",@progbits\n", NAME, mode);	\
      }									\
    else									\
      {									\
        if (DECL && s->type != type)					\
  	error_with_decl (DECL, "%s causes a section type conflict");	\
  									\
!       fprintf (FILE, "\t.section\t%s\n", NAME);				\
      }									\
  } while (0)
  




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