summaryrefslogtreecommitdiff
path: root/ldso/libdl/libdl.c
diff options
context:
space:
mode:
Diffstat (limited to 'ldso/libdl/libdl.c')
-rw-r--r--ldso/libdl/libdl.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/ldso/libdl/libdl.c b/ldso/libdl/libdl.c
index 2ae9d3487..3c1eab43a 100644
--- a/ldso/libdl/libdl.c
+++ b/ldso/libdl/libdl.c
@@ -85,9 +85,7 @@ static const char *dl_error_names[] = {
"Unable to resolve symbol"
};
-static void dl_cleanup(void) __attribute__ ((destructor));
-
-static void dl_cleanup(void)
+static void __attribute__ ((destructor)) dl_cleanup(void)
{
struct dyn_elf *d;