David 'Digit' Turner | 6a9b888 | 2010-06-18 14:47:22 -0700 | [diff] [blame] | 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 | |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 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 |
David 'Digit' Turner | 6a9b888 | 2010-06-18 14:47:22 -0700 | [diff] [blame] | 21 | .long _on_dlclose |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 22 | |
David 'Digit' Turner | 6a9b888 | 2010-06-18 14:47:22 -0700 | [diff] [blame] | 23 | #include "__dso_handle.S" |