aboutsummaryrefslogtreecommitdiff
path: root/gcc/crtstuff.c
diff options
context:
space:
mode:
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>1997-12-06 17:30:09 +0000
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>1997-12-06 17:30:09 +0000
commitd721838658d4ee24af66c16dd8c42911b7cfd523 (patch)
tree162b52c52d38926a3c79abd2120a112646a32acc /gcc/crtstuff.c
parent068b87b11d9511d72cd9baea5e3d2d002b1d8061 (diff)
import of gcc-2.8
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc3@16983 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/crtstuff.c')
-rw-r--r--gcc/crtstuff.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/gcc/crtstuff.c b/gcc/crtstuff.c
index bcb5cc50bf0..4fbc9e4f9fb 100644
--- a/gcc/crtstuff.c
+++ b/gcc/crtstuff.c
@@ -1,6 +1,6 @@
/* Specialized bits of code needed to support construction and
destruction of file-scope objects in C++ code.
- Copyright (C) 1991, 1994, 1995, 1996 Free Software Foundation, Inc.
+ Copyright (C) 1991, 1994, 1995, 1996, 1997 Free Software Foundation, Inc.
Contributed by Ron Guilmette (rfg@monkeys.com).
This file is part of GNU CC.
@@ -53,6 +53,8 @@ Boston, MA 02111-1307, USA. */
#include "tm.h"
#include "defaults.h"
+#include <stddef.h>
+#include "frame.h"
/* Provide default definitions for the pseudo-ops used to switch to the
.ctors and .dtors sections.
@@ -160,7 +162,8 @@ fini_dummy ()
static void
frame_dummy ()
{
- __register_frame (__EH_FRAME_BEGIN__);
+ static struct object object;
+ __register_frame (__EH_FRAME_BEGIN__, &object);
}
static void
@@ -322,7 +325,7 @@ init_dummy ()
#endif
asm (TEXT_SECTION_ASM_OP);
-/* This is a kludge. The i386 Linux dynamic linker needs ___brk_addr,
+/* This is a kludge. The i386 GNU/Linux dynamic linker needs ___brk_addr,
__environ and atexit (). We have to make sure they are in the .dynsym
section. We accomplish it by making a dummy call here. This
code is never reached. */