mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-08 17:42:12 +03:00
Fix PLT use due to __libc_alloca_cutoff.
This commit is contained in:
@@ -10,6 +10,7 @@
|
|||||||
[BZ #10484]
|
[BZ #10484]
|
||||||
* nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
|
* nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
|
||||||
temporary buffer used to handle multi lookups locally.
|
temporary buffer used to handle multi lookups locally.
|
||||||
|
* include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
|
||||||
|
|
||||||
2011-01-12 Ulrich Drepper <drepper@gmail.com>
|
2011-01-12 Ulrich Drepper <drepper@gmail.com>
|
||||||
|
|
||||||
|
@@ -14,6 +14,7 @@ extern void *__alloca (size_t __size);
|
|||||||
|
|
||||||
extern int __libc_use_alloca (size_t size) __attribute__ ((const));
|
extern int __libc_use_alloca (size_t size) __attribute__ ((const));
|
||||||
extern int __libc_alloca_cutoff (size_t size) __attribute__ ((const));
|
extern int __libc_alloca_cutoff (size_t size) __attribute__ ((const));
|
||||||
|
libc_hidden_proto (__libc_alloca_cutoff)
|
||||||
|
|
||||||
#define __MAX_ALLOCA_CUTOFF 65536
|
#define __MAX_ALLOCA_CUTOFF 65536
|
||||||
|
|
||||||
|
@@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
[BZ #10484]
|
[BZ #10484]
|
||||||
* Versions [libc] (GLIBC_PRIVATE): Export __libc_alloca_cutoff.
|
* Versions [libc] (GLIBC_PRIVATE): Export __libc_alloca_cutoff.
|
||||||
|
* alloca_cutoff.c: Add libc_hidden_def.
|
||||||
|
|
||||||
2010-10-13 H.J. Lu <hongjiu.lu@intel.com>
|
2010-10-13 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
/* Determine whether block of given size can be allocated on the stack or not.
|
/* Determine whether block of given size can be allocated on the stack or not.
|
||||||
Copyright (C) 2002 Free Software Foundation, Inc.
|
Copyright (C) 2002, 2011 Free Software Foundation, Inc.
|
||||||
This file is part of the GNU C Library.
|
This file is part of the GNU C Library.
|
||||||
|
|
||||||
The GNU C Library is free software; you can redistribute it and/or
|
The GNU C Library is free software; you can redistribute it and/or
|
||||||
@@ -34,3 +34,4 @@ __libc_alloca_cutoff (size_t size)
|
|||||||
assume the maximum available stack space. */
|
assume the maximum available stack space. */
|
||||||
?: __MAX_ALLOCA_CUTOFF * 4));
|
?: __MAX_ALLOCA_CUTOFF * 4));
|
||||||
}
|
}
|
||||||
|
libc_hidden_def (__libc_alloca_cutoff)
|
||||||
|
Reference in New Issue
Block a user