added -rdynamic support

This commit is contained in:
bellard
2003-05-24 15:46:29 +00:00
parent fe3b68b087
commit 98713a6be3
2 changed files with 19 additions and 3 deletions

8
tcc.c
View File

@ -398,6 +398,9 @@ struct TCCState {
/* if true, static linking is performed */
int static_link;
/* if true, all symbols are exported */
int rdynamic;
/* if true, only link in referenced objects from archive */
int alacarte_link;
@ -9653,7 +9656,7 @@ static const TCCOption tcc_options[] = {
{ "shared", TCC_OPTION_shared, 0 },
{ "o", TCC_OPTION_o, TCC_OPTION_HAS_ARG },
{ "run", TCC_OPTION_run, 0 },
{ "rdynamic", TCC_OPTION_rdynamic, 0 }, /* currently ignored */
{ "rdynamic", TCC_OPTION_rdynamic, 0 },
{ "r", TCC_OPTION_r, 0 },
{ "W", TCC_OPTION_W, TCC_OPTION_HAS_ARG | TCC_OPTION_NOSEP },
{ "O", TCC_OPTION_O, TCC_OPTION_HAS_ARG | TCC_OPTION_NOSEP },
@ -9838,6 +9841,9 @@ int main(int argc, char **argv)
goto unsupported_option;
}
break;
case TCC_OPTION_rdynamic:
s->rdynamic = 1;
break;
default:
if (s->warn_unsupported) {
unsupported_option: