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
bced43dd
Commit
bced43dd
authored
Dec 08, 1994
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(CRT_END): Add dummy refs to ___brk_addr, __environ and atexit if
__linux__ and __PIC__ defined. From-SVN: r8626
parent
38d8473f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
1 deletions
+16
-1
gcc/crtstuff.c
+16
-1
No files found.
gcc/crtstuff.c
View file @
bced43dd
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
Written by Ron Guilmette (rfg@netcom.com) with help from Richard Stallman.
Written by Ron Guilmette (rfg@netcom.com) with help from Richard Stallman.
Copyright (C) 1991 Free Software Foundation, Inc.
Copyright (C) 1991
, 1994
Free Software Foundation, Inc.
This file is part of GNU CC.
This file is part of GNU CC.
...
@@ -235,6 +235,21 @@ init_dummy ()
...
@@ -235,6 +235,21 @@ init_dummy ()
FORCE_INIT_SECTION_ALIGN
;
FORCE_INIT_SECTION_ALIGN
;
#endif
#endif
asm
(
TEXT_SECTION_ASM_OP
);
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
code is never reached. */
#if defined(__linux__) && defined(__PIC__)
{
extern
void
*
___brk_addr
;
extern
char
**
__environ
;
___brk_addr
=
__environ
;
atexit
();
}
#endif
}
}
#else
/* OBJECT_FORMAT_ELF */
#else
/* OBJECT_FORMAT_ELF */
...
...
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