Sync from master (fc5cfe0a5e)

This commit is contained in:
armink
2019-03-14 20:37:30 +08:00
parent 4a34b41dd6
commit dba2b47d45
450 changed files with 47066 additions and 4332 deletions

View File

@@ -14,7 +14,7 @@ if GetDepend('RT_USING_DFS') == False:
if GetDepend('RT_USING_MODULE') == False:
SrcRemove(src, ['libc_syms.c'])
if rtconfig.PLATFORM == 'armcc':
if rtconfig.PLATFORM == 'armcc' or rtconfig.PLATFORM == 'armclang':
group = DefineGroup('libc', src, depend = ['RT_USING_LIBC'],
CPPPATH = CPPPATH, CPPDEFINES = CPPDEFINES)

View File

@@ -251,7 +251,7 @@ void _ttywrch(int ch)
#endif
}
void _sys_exit(int return_code)
RT_WEAK void _sys_exit(int return_code)
{
/* TODO: perhaps exit the thread which is invoking this function */
while (1);

View File

@@ -12,9 +12,7 @@
#include "dlelf.h"
#define DBG_SECTION_NAME "DLMD"
#define DBG_ENABLE // enable debug macro
#define DBG_LEVEL DBG_INFO
#define DBG_COLOR
#include <rtdbg.h> // must after of DEBUG_ENABLE or some other options
rt_err_t dlmodule_load_shared_object(struct rt_dlmodule* module, void *module_ptr)

View File

@@ -17,9 +17,7 @@
#include <dfs_posix.h>
#define DBG_SECTION_NAME "DLMD"
#define DBG_ENABLE // enable debug macro
#define DBG_LEVEL DBG_INFO
#define DBG_COLOR
#include <rtdbg.h> // must after of DEBUG_ENABLE or some other options
static struct rt_module_symtab *_rt_module_symtab_begin = RT_NULL;