mirror of
git://sourceware.org/git/glibc.git
synced 2024-11-27 03:41:23 +08:00
nptl: Open libgcc.so with RTLD_NOW during pthread_cancel [BZ #22636]
Disabling lazy binding reduces stack usage during unwinding.
Note that RTLD_NOW only makes a difference if libgcc.so has not
already been loaded, so this is only a partial fix.
Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
(cherry picked from commit f993b87540
)
This commit is contained in:
parent
5d4c589ca4
commit
3e75e676da
@ -1,3 +1,9 @@
|
||||
2018-01-10 Florian Weimer <fweimer@redhat.com>
|
||||
|
||||
[BZ #22636]
|
||||
* sysdeps/nptl/unwind-forcedunwind.c (pthread_cancel_init): Open
|
||||
libgcc.so with RTLD_NOW, to avoid lazy binding during unwind.
|
||||
|
||||
2018-01-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
|
||||
|
||||
[BZ #22637]
|
||||
|
1
NEWS
1
NEWS
@ -66,6 +66,7 @@ The following bugs are resolved with this release:
|
||||
[21972] assert macro requires operator== (int) for its argument type
|
||||
[22078] nss_files performance issue in hosts multi mode
|
||||
[22322] libc: [mips64] wrong bits/long-double.h installed
|
||||
[22636] PTHREAD_STACK_MIN is too small on x86-64
|
||||
[22627] $ORIGIN in $LD_LIBRARY_PATH is substituted twice
|
||||
[22637] nptl: Fix stack guard size accounting
|
||||
[22679] getcwd(3) can succeed without returning an absolute path
|
||||
|
@ -49,7 +49,7 @@ pthread_cancel_init (void)
|
||||
return;
|
||||
}
|
||||
|
||||
handle = __libc_dlopen (LIBGCC_S_SO);
|
||||
handle = __libc_dlopen_mode (LIBGCC_S_SO, RTLD_NOW | __RTLD_DLOPEN);
|
||||
|
||||
if (handle == NULL
|
||||
|| (resume = __libc_dlsym (handle, "_Unwind_Resume")) == NULL
|
||||
|
Loading…
Reference in New Issue
Block a user