mirror of git://sourceware.org/git/glibc.git
<limits.h> used to be a header file with no declarations. GCC's libgomp includes it in a #pragma GCC visibility hidden block. Including <unistd.h> from <limits.h> (indirectly) declares everything in <unistd.h> with hidden visibility, resulting in linker failures. This commit avoids C declarations in assembler mode and only declares __sysconf in <limits.h> (and not the entire contents of <unistd.h>). The __sysconf symbol is already part of the ABI. PTHREAD_STACK_MIN is no longer defined for __USE_DYNAMIC_STACK_SIZE && __ASSEMBLER__ because there is no possible definition. Additionally, PTHREAD_STACK_MIN is now defined by <pthread.h> for __USE_MISC because this is what developers expect based on the macro name. It also helps to avoid libgomp linker failures in GCC because libgomp includes <pthread.h> before its visibility hacks. Reviewed-by: Carlos O'Donell <carlos@redhat.com> |
||
|---|---|---|
| .. | ||
| types | ||
| argp-ldbl.h | ||
| cmathcalls.h | ||
| cpu-set.h | ||
| dlfcn.h | ||
| endian.h | ||
| err-ldbl.h | ||
| error-ldbl.h | ||
| error.h | ||
| fcntl2.h | ||
| getopt_core.h | ||
| getopt_ext.h | ||
| getopt_posix.h | ||
| locale.h | ||
| mathcalls-helper-functions.h | ||
| mathcalls-narrow.h | ||
| mathcalls.h | ||
| monetary-ldbl.h | ||
| mqueue2.h | ||
| poll2.h | ||
| posix1_lim.h | ||
| posix2_lim.h | ||
| printf-ldbl.h | ||
| select2.h | ||
| setjmp2.h | ||
| sigstack.h | ||
| sigstksz.h | ||
| socket2.h | ||
| stab.def | ||
| statx-generic.h | ||
| statx.h | ||
| stdio-ldbl.h | ||
| stdio.h | ||
| stdio2.h | ||
| stdlib-float.h | ||
| stdlib-ldbl.h | ||
| stdlib.h | ||
| string2.h | ||
| string_fortified.h | ||
| strings_fortified.h | ||
| syslog-ldbl.h | ||
| syslog.h | ||
| types.h | ||
| unistd.h | ||
| unistd_ext.h | ||
| wchar-ldbl.h | ||
| wchar2.h | ||
| wctype-wchar.h | ||
| xopen_lim.h | ||