diff options
author | Nigel Croxon <ncroxon@redhat.com> | 2023-05-16 09:05:00 -0400 |
---|---|---|
committer | Nigel Croxon <ncroxon@redhat.com> | 2023-05-16 09:05:00 -0400 |
commit | bbc2b528e08e5b99e08e103302ee90046135a039 (patch) | |
tree | 9b31b5160364264986e617f1fb292b826ad26413 | |
parent | fe76d597a9b85f8af55235dd41722abf8fe63ca1 (diff) | |
download | gnu-efi-bbc2b528e08e5b99e08e103302ee90046135a039.tar.gz |
Revert "Make ELF constructors/destructors work"
This reverts commit fe76d597a9b85f8af55235dd41722abf8fe63ca1.
-rw-r--r-- | lib/entry.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/entry.c b/lib/entry.c index 6338112..d852608 100644 --- a/lib/entry.c +++ b/lib/entry.c @@ -24,13 +24,13 @@ static void ctors(void) { for (funcp *location = (void *)&_init_array; location < (funcp *)&_init_array_end; location++) { funcp func = *location; - if (func != NULL) + if (location != NULL) func(); } for (funcp *location = (void *)&__CTOR_LIST__; location < (funcp *)&__CTOR_END__; location++) { funcp func = *location; - if (func != NULL) + if (location != NULL) func(); } } @@ -39,13 +39,13 @@ static void dtors(void) { for (funcp *location = (void *)&__DTOR_LIST__; location < (funcp *)&__DTOR_END__; location++) { funcp func = *location; - if (func != NULL) + if (location != NULL) func(); } for (funcp *location = (void *)&_fini_array; location < (funcp *)&_fini_array_end; location++) { funcp func = *location; - if (func != NULL) + if (location != NULL) func(); } } |