Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Marcus_H
glibc
glibc-2.14-fix-ctors.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File glibc-2.14-fix-ctors.patch of Package glibc
Index: glibc-2.14/elf/soinit.c =================================================================== --- glibc-2.14.orig/elf/soinit.c +++ glibc-2.14/elf/soinit.c @@ -26,7 +26,11 @@ void __libc_global_ctors (void) { /* Call constructor functions. */ - run_hooks (__CTOR_LIST__); + void (**tem)(); + asm ("" : "=r" (tem) : "0" (__CTOR_LIST__)); + /* Call destructor functions. */ + + run_hooks (tem); } @@ -36,7 +40,11 @@ void __libc_fini (void) { /* Call destructor functions. */ - run_hooks (__DTOR_LIST__); + void (**tem)(); + asm ("" : "=r" (tem) : "0" (__DTOR_LIST__)); + /* Call destructor functions. */ + + run_hooks (tem); } void (*_fini_ptr) (void) __attribute__ ((section (".fini_array")))
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