diff --git a/libc/arch-arm/bionic/crtbegin_so.c b/libc/arch-arm/bionic/crtbegin_so.c index 57d19bf30..23f76b14f 100644 --- a/libc/arch-arm/bionic/crtbegin_so.c +++ b/libc/arch-arm/bionic/crtbegin_so.c @@ -29,7 +29,7 @@ extern void __cxa_finalize(void *); extern void *__dso_handle; -__attribute__((visbility("hidden"))) +__attribute__((visibility("hidden"),destructor)) void __on_dlclose() { __cxa_finalize(&__dso_handle); }