Unified · Split
| @@ -956,10 +956,6 @@ static void tcc_add_runtime(TCCState *s1) · 955 unmodified lines | |||
| 956 | { | 956 | { |
| 957 | char buf[1024]; | 957 | char buf[1024]; |
| 958 | 958 | ||
| 959 | if (!s1->nostdlib) { | ||
| 960 | snprintf(buf, sizeof(buf), "%s/%s", tcc_lib_path, "libtcc1.a"); | ||
| 961 | tcc_add_file(s1, buf); | ||
| 962 | } | ||
| 963 | #ifdef CONFIG_TCC_BCHECK | 959 | #ifdef CONFIG_TCC_BCHECK |
| 964 | if (do_bounds_check) { | 960 | if (do_bounds_check) { |
| 965 | unsigned long *ptr; | 961 | unsigned long *ptr; |
| @@ -993,6 +989,9 @@ static void tcc_add_runtime(TCCState *s1) · 27 unmodified lines | |||
| 993 | /* add libc */ | 989 | /* add libc */ |
| 994 | if (!s1->nostdlib) { | 990 | if (!s1->nostdlib) { |
| 995 | tcc_add_library(s1, "c"); | 991 | tcc_add_library(s1, "c"); |
| 992 | |||
| 993 | snprintf(buf, sizeof(buf), "%s/%s", tcc_lib_path, "libtcc1.a"); | ||
| 994 | tcc_add_file(s1, buf); | ||
| 996 | } | 995 | } |
| 997 | /* add crt end if not memory output */ | 996 | /* add crt end if not memory output */ |
| 998 | if (s1->output_type != TCC_OUTPUT_MEMORY && !s1->nostdlib) { | 997 | if (s1->output_type != TCC_OUTPUT_MEMORY && !s1->nostdlib) { |