summaryrefslogtreecommitdiff
path: root/ldso
diff options
context:
space:
mode:
Diffstat (limited to 'ldso')
-rw-r--r--ldso/libdl/dlib.c4
-rw-r--r--ldso/libdl/libdl.c4
2 files changed, 2 insertions, 6 deletions
diff --git a/ldso/libdl/dlib.c b/ldso/libdl/dlib.c
index 2ae9d3487..3c1eab43a 100644
--- a/ldso/libdl/dlib.c
+++ b/ldso/libdl/dlib.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;
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;