diff options
author | Callum Farmer <gmbr3@opensuse.org> | 2023-05-04 14:11:37 +0100 |
---|---|---|
committer | Callum Farmer <gmbr3@opensuse.org> | 2023-05-07 16:43:20 +0100 |
commit | 4c6962457f4ce3f4c18774ce6accd8d20ee29f22 (patch) | |
tree | bf2981b4444fda9481f14f92605a1c6a83c409c9 | |
parent | 9dbfe1c36558fdbc2574cea7e47e6a473955051d (diff) | |
download | gnu-efi-4c6962457f4ce3f4c18774ce6accd8d20ee29f22.tar.gz |
entry.c: fini_array is run backwards
fini_array is 65535 to 0 but stored 0 to 65535
Signed-off-by: Callum Farmer <gmbr3@opensuse.org>
-rw-r--r-- | lib/entry.c | 2 |
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(); |