1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/sys/cpp_new_delete/cppsupport.cpp
Gunar Schorcht 9ec52361d1 sys/cpp11_compat: move __dso_handle to sys/cpp_new_delete
On ARM platforms, `__dso_handle` is used for dynamic shared objects. But it is also required if global static objects are used. To avoid that `sys/cpp11_compat` is required only for using the (re)defined `new`/`delete` operators, `__dso_handle` is moved to module `sys/cpp_new_delete`
2022-01-06 09:50:29 +01:00

31 lines
658 B
C++

/*
* Copyright (C) 2015 Eistec AB
*
* This file is subject to the terms and conditions of the GNU Lesser General
* Public License v2.1. See the file LICENSE in the top level directory for more
* details.
*/
/**
* @ingroup cpp_new_delete
* @{
*
* @file
* @brief C++ runtime support functions
*
* @author Joakim Nohlgård <joakim.nohlgard@eistec.se>
*/
#include <stdlib.h>
/**
* @brief DSO handle
*
* This symbol is used by dynamic shared objects to identify them, but it is
* somehow pulled in as a dependency by the compiler-generated global (static)
* constructor code.
*/
void *__dso_handle __attribute__((weak)) = NULL;
/** @} */