commit | 7383814d8bec56964bcf9f4171ab20b8ea16c681 | [log] [tgz] |
---|---|---|
author | Michael Hope <mlhx@google.com> | Mon Mar 26 20:32:05 2018 +0200 |
committer | Anas Nashif <nashif@linux.intel.com> | Mon Apr 09 23:21:52 2018 -0400 |
tree | 43f5e033fa189831328ec1b299c5b8969ef2ed8d | |
parent | 5f67a6119dfb1a83c039df81cb4884a3fd18c1dc [diff] [blame] |
cpp: mark __dso_handle as weak. The POSIX target uses the native crt0 which already provides __dso_handle. Signed-off-by: Michael Hope <mlhx@google.com>
diff --git a/subsys/cpp/cpp_dtors.c b/subsys/cpp/cpp_dtors.c index 2e6f462..b4017e5 100644 --- a/subsys/cpp/cpp_dtors.c +++ b/subsys/cpp/cpp_dtors.c
@@ -12,7 +12,7 @@ #include <toolchain.h> -void *__dso_handle = 0; +__weak void *__dso_handle; /** * @brief Register destructor for a global object