History

With -run -nostdlib use "_start" as the entry symbol.

Ziga Lenarcic committed 7 years ago

Commit fa0ef911 parent 2a417b51 file · +1 −1Browse files

Unified · Split

tccrun.c+1−1
@@ -117,7 +117,7 @@ LIBTCCAPI int tcc_run(TCCState *s1, int argc, char **argv) · 116 unmodified lines
117117 {
118118 int (*prog_main)(int, char **);
119119
120− s1->runtime_main = "main";
120+ s1->runtime_main = s1->nostdlib ? "_start" : "main";
121121 if ((s1->dflag & 16) && !find_elf_sym(s1->symtab, s1->runtime_main))
122122 return 0;
123123 if (tcc_relocate(s1, TCC_RELOCATE_AUTO) < 0)

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