libgcc: only use __mmap if glibc >- 2.26
* generic-morestack.c: Only use __mmap on glibc >= 2.26.
This commit is contained in:
parent
75c8d6e54a
commit
458ca332d1
|
@ -1,3 +1,7 @@
|
||||||
|
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>
|
2020-04-03 Ian Lance Taylor <iant@golang.org>
|
||||||
|
|
||||||
* generic-morestack.c: On GNU/Linux use __mmap/__munmap rather
|
* generic-morestack.c: On GNU/Linux use __mmap/__munmap rather
|
||||||
|
|
|
@ -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
|
glibc on GNU/Linux we can avoid the problem by calling __mmap and
|
||||||
__munmap. */
|
__munmap. */
|
||||||
|
|
||||||
#ifdef __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 void *__mmap (void *, size_t, int, int, int, off_t);
|
||||||
extern int __munmap (void *, size_t);
|
extern int __munmap (void *, size_t);
|
||||||
|
|
Loading…
Reference in New Issue