crtbegin_so.S revision fd88dd19f7f7f203004f9e43e9b71197a451ec44
1# This function is to be called when the shared library 2# is unloaded through dlclose() 3_on_dlclose: 4 lea __dso_handle, %eax 5 call __cxa_finalize 6 ret 7 8.section .init_array, "aw" 9.align 4 10.type __INIT_ARRAY__, @object 11.globl __INIT_ARRAY__ 12__INIT_ARRAY__: 13 .long -1 14 15.section .fini_array, "aw" 16.align 4 17.type __FINI_ARRAY__, @object 18.globl __FINI_ARRAY__ 19__FINI_ARRAY__: 20 .long -1 21 .long _on_dlclose 22 23#include "__dso_handle.S" 24