summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/entry.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/entry.c b/lib/entry.c
index 1aac667..0ff63fe 100644
--- a/lib/entry.c
+++ b/lib/entry.c
@@ -43,7 +43,7 @@ static void dtors(void)
func();
}
- for (funcp *location = (void *)&__fini_array_start; location < (funcp *)&__fini_array_end; location++) {
+ for (funcp *location = (void *)&__fini_array_end; location > (funcp *)&__fini_array_start; location--) {
funcp func = *location;
if (*location != NULL)
func();