From e9315f499bc138b67c2e241d8f4a1b167815c8b6 Mon Sep 17 00:00:00 2001 From: bellard Date: Wed, 24 Jul 2002 22:12:47 +0000 Subject: [PATCH] added bound check symbols --- tcctok.h | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/tcctok.h b/tcctok.h index d593ad75..49013920 100644 --- a/tcctok.h +++ b/tcctok.h @@ -14,7 +14,7 @@ DEF(TOK___STDCALL__, "__stdcall__") DEF(TOK_NORETURN, "noreturn") DEF(TOK___NORETURN__, "__noreturn__") -/* builtin functions */ +/* builtin functions or variables */ DEF(TOK_memcpy, "memcpy") DEF(TOK_memset, "memset") DEF(TOK___divdi3, "__divdi3") @@ -24,12 +24,17 @@ DEF(TOK___umoddi3, "__umoddi3") DEF(TOK___sardi3, "__sardi3") DEF(TOK___shrdi3, "__shrdi3") DEF(TOK___shldi3, "__shldi3") +DEF(TOK___tcc_int_fpu_control, "__tcc_int_fpu_control") +DEF(TOK___tcc_fpu_control, "__tcc_fpu_control") DEF(TOK___ulltof, "__ulltof") DEF(TOK___ulltod, "__ulltod") DEF(TOK___ulltold, "__ulltold") DEF(TOK___fixunssfdi, "__fixunssfdi") DEF(TOK___fixunsdfdi, "__fixunsdfdi") DEF(TOK___fixunsxfdi, "__fixunsxfdi") + +/* bound checking symbols */ +#ifdef CONFIG_TCC_BCHECK DEF(TOK___bound_ptr_add, "__bound_ptr_add") DEF(TOK___bound_ptr_indir1, "__bound_ptr_indir1") DEF(TOK___bound_ptr_indir2, "__bound_ptr_indir2") @@ -37,3 +42,14 @@ DEF(TOK___bound_ptr_indir4, "__bound_ptr_indir4") DEF(TOK___bound_ptr_indir8, "__bound_ptr_indir8") DEF(TOK___bound_ptr_indir12, "__bound_ptr_indir12") DEF(TOK___bound_ptr_indir16, "__bound_ptr_indir16") +DEF(TOK___bound_local_new, "__bound_local_new") +DEF(TOK___bound_local_delete, "__bound_local_delete") +DEF(TOK_malloc, "malloc") +DEF(TOK_free, "free") +DEF(TOK_realloc, "realloc") +DEF(TOK_memalign, "memalign") +DEF(TOK_calloc, "calloc") +DEF(TOK_memmove, "memmove") +DEF(TOK_strlen, "strlen") +DEF(TOK_strcpy, "strlen") +#endif -- 2.11.4.GIT