pkarashchenko commented on code in PR #6197: URL: https://github.com/apache/incubator-nuttx/pull/6197#discussion_r880527543
########## libs/libc/stdlib/lib_exit.c: ########## @@ -22,13 +22,38 @@ * Included Files ****************************************************************************/ +#include <nuttx/config.h> + +#include <nuttx/atexit.h> +#include <nuttx/compiler.h> + #include <stdlib.h> #include <unistd.h> +/**************************************************************************** + * Private Data + ****************************************************************************/ + +/**************************************************************************** + * Public Data + ****************************************************************************/ + +extern FAR void *__dso_handle weak_data; +FAR void *__dso_handle = &__dso_handle; Review Comment: Ok. Just figured it out. We need to keep as it is now. So `extern FAR void *__dso_handle weak_data;` is a reference to a linker hidden symbol and `FAR void *__dso_handle = &__dso_handle;` creates a `__dso_handle` symbol if it is not provided by the linker. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
