From 5ed48a4d7fece002afbbd2bd981563aea6e52e24 Mon Sep 17 00:00:00 2001 From: Ard Biesheuvel Date: Tue, 21 Aug 2012 11:34:46 +0200 Subject: [PATCH] ARM: make sure __on_dlclose() actually gets called Change-Id: I280e5428b0543cccf17ca36baee4865395928cdb Signed-off-by: Ard Biesheuvel --- libc/arch-arm/bionic/crtbegin_so.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }