aboutsummaryrefslogtreecommitdiff
path: root/tcc.c
diff options
context:
space:
mode:
authorbellard <bellard>2003-05-24 15:46:29 +0000
committerbellard <bellard>2003-05-24 15:46:29 +0000
commit98713a6be395ff75d93772722b8144e69990104f (patch)
treef37d888b506ff8fae07ff07a2942f5d2089768a4 /tcc.c
parentfe3b68b087934c7cee531f1ea6bf072fa94594fa (diff)
downloadtinycc-98713a6be395ff75d93772722b8144e69990104f.tar.gz
tinycc-98713a6be395ff75d93772722b8144e69990104f.tar.bz2
added -rdynamic support
Diffstat (limited to 'tcc.c')
-rw-r--r--tcc.c8
1 files changed, 7 insertions, 1 deletions
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: