aboutsummaryrefslogtreecommitdiff
path: root/gcc/crtstuff.c
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gcc.gnu.org>1996-06-28 14:08:53 -0400
committerRichard Kenner <kenner@gcc.gnu.org>1996-06-28 14:08:53 -0400
commitd0f8fcea2689a8c9c32648370c14e0ce40288bfa (patch)
tree2df1017ee40b07a7f200b5ea42b34f4a5cecaf6e /gcc/crtstuff.c
parent960a3ef20b1b824ff19ede19a6a9ae9c627ddeb2 (diff)
downloadgcc-d0f8fcea2689a8c9c32648370c14e0ce40288bfa.zip
gcc-d0f8fcea2689a8c9c32648370c14e0ce40288bfa.tar.gz
gcc-d0f8fcea2689a8c9c32648370c14e0ce40288bfa.tar.bz2
(init_dummy): Only i386-linux (at most) needs ___brk_addr hack.
From-SVN: r12357
Diffstat (limited to 'gcc/crtstuff.c')
-rw-r--r--gcc/crtstuff.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/gcc/crtstuff.c b/gcc/crtstuff.c
index 8bd3b1a..cce41b6 100644
--- a/gcc/crtstuff.c
+++ b/gcc/crtstuff.c
@@ -1,9 +1,7 @@
/* Specialized bits of code needed to support construction and
destruction of file-scope objects in C++ code.
-
- Written by Ron Guilmette (rfg@netcom.com) with help from Richard Stallman.
-
-Copyright (C) 1991, 1994, 1995 Free Software Foundation, Inc.
+ Copyright (C) 1991, 1994, 1995, 1996 Free Software Foundation, Inc.
+ Contributed by Ron Guilmette (rfg@monkeys.com).
This file is part of GNU CC.
@@ -247,12 +245,12 @@ init_dummy ()
#endif
asm (TEXT_SECTION_ASM_OP);
-/* This is a kludge. The 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
+/* This is a kludge. The i386 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. */
-#if defined(__linux__) && defined(__PIC__)
+#if defined(__linux__) && defined(__PIC__) && defined(__i386__)
{
extern void *___brk_addr;
extern char **__environ;