History

correct libtcc1 link order

bellard committed 22 years ago

Commit 3e74b911 parent e657dfb1 file · +3 −4Browse files

Unified · Split

tccelf.c+3−4
@@ -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_BCHECK959#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) {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t