mirror of
https://github.com/mirror/tinycc.git
synced 2025-01-15 05:20:06 +08:00
libtcc: Let "-Wl,*" also accept "--entry=xxx" as alias for "--e=xxx"
This commit is contained in:
parent
73c22f831f
commit
fe7ee1105c
3
libtcc.c
3
libtcc.c
@ -1337,7 +1337,8 @@ static int tcc_set_linker(TCCState *s, const char *option)
|
||||
s->symbolic = 1;
|
||||
} else if (link_option(option, "nostdlib", &p)) {
|
||||
s->nostdlib = 1;
|
||||
} else if (link_option(option, "e=", &p)) {
|
||||
} else if (link_option(option, "e=", &p)
|
||||
|| link_option(option, "entry=", &p)) {
|
||||
copy_linker_arg(&s->elf_entryname, p, 0);
|
||||
} else if (link_option(option, "fini=", &p)) {
|
||||
copy_linker_arg(&s->fini_symbol, p, 0);
|
||||
|
Loading…
Reference in New Issue
Block a user