libtcc: Let "-Wl,*" also accept "--entry=xxx" as alias for "--e=xxx"

This commit is contained in:
Detlef Riekenberg 2022-07-08 00:18:14 +02:00
parent 73c22f831f
commit fe7ee1105c

View File

@ -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);