mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-10-19 20:43:43 +08:00
[rtdef] use lower-case to define attributes (#6728)
* [rtdef] rename RT_WEAK attribute as rt_weak * [rtdef] rename RT_USED attribute as rt_used * [rtdef] rename RT_SECTION attribute as rt_section * [rtdef] rename ALIGN attribute as rt_align * [legacy] add RT_USED ALIGN RT_SECTION RT_WEAK as legacy support
This commit is contained in:

committed by
GitHub

parent
a4b8762d85
commit
99bdf978d7
@@ -16,25 +16,25 @@
|
||||
#if defined(__ARMCC_VERSION)
|
||||
extern void $Super$$__cpp_initialize__aeabi_(void);
|
||||
/* we need to change the cpp_initialize order */
|
||||
RT_WEAK void $Sub$$__cpp_initialize__aeabi_(void)
|
||||
rt_weak void $Sub$$__cpp_initialize__aeabi_(void)
|
||||
{
|
||||
/* empty */
|
||||
}
|
||||
#elif defined(__GNUC__) && !defined(__CS_SOURCERYGXX_MAJ__)
|
||||
/* The _init()/_fini() routines has been defined in codesourcery g++ lite */
|
||||
RT_WEAK void _init()
|
||||
rt_weak void _init()
|
||||
{
|
||||
}
|
||||
|
||||
RT_WEAK void _fini()
|
||||
rt_weak void _fini()
|
||||
{
|
||||
}
|
||||
|
||||
RT_WEAK void *__dso_handle = 0;
|
||||
rt_weak void *__dso_handle = 0;
|
||||
|
||||
#endif
|
||||
|
||||
RT_WEAK int cplusplus_system_init(void)
|
||||
rt_weak int cplusplus_system_init(void)
|
||||
{
|
||||
#if defined(__ARMCC_VERSION)
|
||||
/* If there is no SHT$$INIT_ARRAY, calling
|
||||
|
Reference in New Issue
Block a user