Skip to content

Commit 73cf02d

Browse files
zhangshanminxiaoxiang781216
authored andcommitted
Revert "libs/libc/stdlib/lib_exit.c: fix multiple definition of __dso_handle in msys2"
This reverts commit 8f96e59. 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.
1 parent 199c301 commit 73cf02d

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

libs/libc/stdlib/lib_exit.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,7 @@
4747
****************************************************************************/
4848

4949
extern FAR void *__dso_handle weak_data;
50-
51-
#ifndef CONFIG_HOST_WINDOWS
5250
FAR void *__dso_handle = &__dso_handle;
53-
#endif
5451

5552
/****************************************************************************
5653
* Public Functions

0 commit comments

Comments
 (0)