libtcc: Let "-Wl,*" also accept "--entry=xxx" as alias for "--e=xxx"
This commit is contained in:
parent
73c22f831f
commit
fe7ee1105c
1 changed files with 2 additions and 1 deletions
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…
Add table
Reference in a new issue