Commit d0f8fcea by Richard Kenner

(init_dummy): Only i386-linux (at most) needs ___brk_addr hack.

From-SVN: r12357
parent 960a3ef2
/* 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;
......
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