diff options
author | kenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4> | 1995-05-19 23:30:17 +0000 |
---|---|---|
committer | kenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4> | 1995-05-19 23:30:17 +0000 |
commit | 3c67709e1057267adff245d06dcf30e003f6acdb (patch) | |
tree | 348e9ff39288c62ed44c980d06c57bce617ac742 /gcc/crtstuff.c | |
parent | 2f41dc7671082626c5973f52e93c163e5650ffa9 (diff) | |
download | gcc-3c67709e1057267adff245d06dcf30e003f6acdb.tar.gz |
Added reference to INIT_SECTION_PREAMBLE for systems that do something
which must be undone prior to __do_global_ctors.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@9749 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/crtstuff.c')
-rw-r--r-- | gcc/crtstuff.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/gcc/crtstuff.c b/gcc/crtstuff.c index f95678c4aef..5a7c8d44ae8 100644 --- a/gcc/crtstuff.c +++ b/gcc/crtstuff.c @@ -3,7 +3,7 @@ Written by Ron Guilmette (rfg@netcom.com) with help from Richard Stallman. -Copyright (C) 1991, 1994 Free Software Foundation, Inc. +Copyright (C) 1991, 1994, 1995 Free Software Foundation, Inc. This file is part of GNU CC. @@ -158,6 +158,16 @@ void __do_global_ctors () asm (INIT_SECTION_ASM_OP); /* cc1 doesn't know that we are switching! */ +/* On some svr4 systems, the initial .init section preamble code provided in + crti.o may do something, such as bump the stack, 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 |