Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Maintenance:5640
glibc.openSUSE_13.2_Update
tls-dtor-list-pointer-mangling.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File tls-dtor-list-pointer-mangling.patch of Package glibc.openSUSE_13.2_Update
2016-07-11 Florian Weimer <fweimer@redhat.com> [BZ #19018] * stdlib/cxa_thread_atexit_impl.c (__cxa_thread_atexit_impl): Mangle function pointer before storing it. (__call_tls_dtors): Demangle function pointer before calling it. Index: glibc-2.19/stdlib/cxa_thread_atexit_impl.c =================================================================== --- glibc-2.19.orig/stdlib/cxa_thread_atexit_impl.c +++ glibc-2.19/stdlib/cxa_thread_atexit_impl.c @@ -42,6 +42,10 @@ static __thread struct link_map *lm_cach int __cxa_thread_atexit_impl (dtor_func func, void *obj, void *dso_symbol) { +#ifdef PTR_MANGLE + PTR_MANGLE (func); +#endif + /* Prepend. */ struct dtor_list *new = calloc (1, sizeof (struct dtor_list)); new->func = func; @@ -83,9 +87,13 @@ __call_tls_dtors (void) while (tls_dtor_list) { struct dtor_list *cur = tls_dtor_list; - tls_dtor_list = tls_dtor_list->next; + dtor_func func = cur->func; +#ifdef PTR_DEMANGLE + PTR_DEMANGLE (func); +#endif - cur->func (cur->obj); + tls_dtor_list = tls_dtor_list->next; + func (cur->obj); __rtld_lock_lock_recursive (GL(dl_load_lock));
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor