This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new 73cf02d63a Revert "libs/libc/stdlib/lib_exit.c: fix multiple 
definition of __dso_handle in msys2"
73cf02d63a is described below

commit 73cf02d63af8c8662440ed300663c9aacecac31e
Author: Shanmin Zhang <zhangshan...@xiaomi.com>
AuthorDate: Tue Jul 29 11:58:12 2025 +0800

    Revert "libs/libc/stdlib/lib_exit.c: fix multiple definition of 
__dso_handle in msys2"
    
    This reverts commit 8f96e59aee9cd0c5bbb82e01044d109f8588fec2.
    
    The implementation of __dso_handle is independent of the HOST OS but 
dependent on the specific compiler.
    Therefore, this patch will cause compilation failures for other 
cross-compilers on the Windows platform, such as arm-none-eabi-gcc and 
aarch64-none-elf-gcc.
    Constraints should be applied to compiler target rather than compiler host.
---
 libs/libc/stdlib/lib_exit.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/libs/libc/stdlib/lib_exit.c b/libs/libc/stdlib/lib_exit.c
index 3d371f2e7d..af57994653 100644
--- a/libs/libc/stdlib/lib_exit.c
+++ b/libs/libc/stdlib/lib_exit.c
@@ -47,10 +47,7 @@
  ****************************************************************************/
 
 extern FAR void *__dso_handle weak_data;
-
-#ifndef CONFIG_HOST_WINDOWS
 FAR void *__dso_handle = &__dso_handle;
-#endif
 
 /****************************************************************************
  * Public Functions

Reply via email to