Lines 766-776
Link Here
|
766 |
#ifdef _DL_FINI_CRT_COMPAT |
766 |
#ifdef _DL_FINI_CRT_COMPAT |
767 |
/* arches that have moved their ldso FINI handling should skip this part */ |
767 |
/* arches that have moved their ldso FINI handling should skip this part */ |
768 |
{ |
768 |
{ |
769 |
int (*_dl_atexit) (void *) = (int (*)(void *)) (intptr_t) _dl_find_hash("atexit", |
769 |
void (*__set__dl_fini) (void *) = (void (*)(void *)) (intptr_t) _dl_find_hash("_set__dl_fini", |
770 |
_dl_symbol_tables, NULL, ELF_RTYPE_CLASS_PLT); |
770 |
_dl_symbol_tables, NULL, ELF_RTYPE_CLASS_PLT); |
771 |
|
771 |
|
772 |
if (_dl_atexit) |
772 |
if (__set__dl_fini) |
773 |
(*_dl_atexit) (_dl_fini); |
773 |
(*__set__dl_fini)(_dl_fini); |
|
|
774 |
else |
775 |
_dl_if_debug_dprint("_set__dl_fini not found\n"); |
774 |
} |
776 |
} |
775 |
#endif |
777 |
#endif |
776 |
|
778 |
|