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
458ca332
Commit
458ca332
authored
Apr 04, 2020
by
Ian Lance Taylor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libgcc: only use __mmap if glibc >- 2.26
* generic-morestack.c: Only use __mmap on glibc >= 2.26.
parent
75c8d6e5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletions
+5
-1
libgcc/ChangeLog
+4
-0
libgcc/generic-morestack.c
+1
-1
No files found.
libgcc/ChangeLog
View file @
458ca332
2020
-
04
-
04
Ian
Lance
Taylor
<
iant
@
golang
.
org
>
*
generic
-
morestack
.
c
:
Only
use
__mmap
on
glibc
>=
2.26
.
2020
-
04
-
03
Ian
Lance
Taylor
<
iant
@
golang
.
org
>
*
generic
-
morestack
.
c
:
On
GNU
/
Linux
use
__mmap
/
__munmap
rather
...
...
libgcc/generic-morestack.c
View file @
458ca332
...
...
@@ -60,7 +60,7 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
glibc on GNU/Linux we can avoid the problem by calling __mmap and
__munmap. */
#if
def __gnu_linux__
#if
defined(__gnu_linux__) && (__GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 26))
extern
void
*
__mmap
(
void
*
,
size_t
,
int
,
int
,
int
,
off_t
);
extern
int
__munmap
(
void
*
,
size_t
);
...
...
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