diff options
author | rms <rms@138bc75d-0d04-0410-961f-82ee72b054a4> | 1992-03-16 06:46:56 +0000 |
---|---|---|
committer | rms <rms@138bc75d-0d04-0410-961f-82ee72b054a4> | 1992-03-16 06:46:56 +0000 |
commit | a3f8291737fd838e260371baf0cc6001285138a9 (patch) | |
tree | e6994580d1eb26599f4506092f5df5cbde80b500 /gcc/crtstuff.c | |
parent | 848fa8f108e074794679f86bfbe57e10714a7c66 (diff) | |
download | gcc-a3f8291737fd838e260371baf0cc6001285138a9.tar.gz |
*** empty log message ***
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@498 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/crtstuff.c')
-rw-r--r-- | gcc/crtstuff.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/crtstuff.c b/gcc/crtstuff.c index 8ecb9fa27db..e377d83ab7c 100644 --- a/gcc/crtstuff.c +++ b/gcc/crtstuff.c @@ -74,6 +74,16 @@ static void force_to_text () { } asm (INIT_SECTION_ASM_OP); /* cc1 doesn't know that we are switching! */ +/* On some svr4 systems, the .init section preamble code provided in + crti.o may do some evil things which we have to undo before we reach + the function prologue code for __do_global_ctors (directly below). + For such systems, define the macro INIT_SECTION_PREAMBLE to + expand into the code needed to undo the actions of the crti.o file. */ + +#ifdef INIT_SECTION_PREAMBLE + INIT_SECTION_PREAMBLE; +#endif + /* A routine to invoke all of the global constructors upon entry to the program. We put this into the .init section (for systems that have such a thing) so that we can properly perform the construction of |