From 98713a6be395ff75d93772722b8144e69990104f Mon Sep 17 00:00:00 2001 From: bellard Date: Sat, 24 May 2003 15:46:29 +0000 Subject: added -rdynamic support --- tcc.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'tcc.c') diff --git a/tcc.c b/tcc.c index 9c6de49..cccdde9 100644 --- a/tcc.c +++ b/tcc.c @@ -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: -- cgit v1.3.1