Commit 8c3edecd by Richard Kenner

(INIT_SECTION_ASM_OP): Don't define.

(LD_INIT_SWITCH, LD_FINI_SWITCH, HAS_INIT_SECTION): Don't undef.
(ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR): Ifdef out.

From-SVN: r10226
parent fabd69e8
/* Definitions of target machine for GNU compiler. Iris version 6. /* Definitions of target machine for GNU compiler. Iris version 6.
Copyright (C) 1994 Free Software Foundation, Inc. Copyright (C) 1994, 1995 Free Software Foundation, Inc.
This file is part of GNU CC. This file is part of GNU CC.
...@@ -57,12 +57,6 @@ Boston, MA 02111-1307, USA. */ ...@@ -57,12 +57,6 @@ Boston, MA 02111-1307, USA. */
#define POPSECTION_ASM_OP ".popsection" #define POPSECTION_ASM_OP ".popsection"
/* To enable use of init and fini sections. */
#define INIT_SECTION_ASM_OP ".section\t.init"
#undef LD_INIT_SWITCH
#undef LD_FINI_SWITCH
#undef HAS_INIT_SECTION
#define DEBUG_SECTION ".debug,1,0,0,1" #define DEBUG_SECTION ".debug,1,0,0,1"
#define LINE_SECTION ".line,1,0,0,1" #define LINE_SECTION ".line,1,0,0,1"
#define SFNAMES_SECTION ".debug_sfnames,1,0,0,1" #define SFNAMES_SECTION ".debug_sfnames,1,0,0,1"
...@@ -111,6 +105,12 @@ Boston, MA 02111-1307, USA. */ ...@@ -111,6 +105,12 @@ Boston, MA 02111-1307, USA. */
/* Stuff for constructors. Start here. */ /* Stuff for constructors. Start here. */
/* The assembler now accepts .section pseudo-ops, but it does not allow
one to change the section in the middle of a function. crtstuff relies
on this hack, and thus crtstuff won't work here. So, we do init and
fini sections exactly the same way as they are done for Irix 5, and
we ifdef out the ASM_OUTPUT_{CON,DE}STRUCTOR macros below. */
#define CONST_SECTION_ASM_OP_32 "\t.rdata" #define CONST_SECTION_ASM_OP_32 "\t.rdata"
#define CONST_SECTION_ASM_OP_64 ".section\t.rodata" #define CONST_SECTION_ASM_OP_64 ".section\t.rodata"
#define CTORS_SECTION_ASM_OP ".section\t.ctors,1,2,0,4" #define CTORS_SECTION_ASM_OP ".section\t.ctors,1,2,0,4"
...@@ -185,6 +185,8 @@ dtors_section () \ ...@@ -185,6 +185,8 @@ dtors_section () \
} \ } \
} }
#if 0
/* A C statement (sans semicolon) to output an element in the table of /* A C statement (sans semicolon) to output an element in the table of
global constructors. */ global constructors. */
#define ASM_OUTPUT_CONSTRUCTOR(FILE,NAME) \ #define ASM_OUTPUT_CONSTRUCTOR(FILE,NAME) \
...@@ -205,6 +207,8 @@ dtors_section () \ ...@@ -205,6 +207,8 @@ dtors_section () \
fprintf (FILE, "\n"); \ fprintf (FILE, "\n"); \
} while (0) } while (0)
#endif
/* Stuff for constructors. End here. */ /* Stuff for constructors. End here. */
/* ??? Perhaps just include svr4.h in this file? */ /* ??? Perhaps just include svr4.h in this file? */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment