Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
d0f8fcea
Commit
d0f8fcea
authored
28 years ago
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(init_dummy): Only i386-linux (at most) needs ___brk_addr hack.
From-SVN: r12357
parent
960a3ef2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
8 deletions
+6
-8
gcc/crtstuff.c
+6
-8
No files found.
gcc/crtstuff.c
View file @
d0f8fcea
/* 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
;
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment