From mboxrd@z Thu Jan 1 00:00:00 1970 From: khan@xraylith.wisc.edu (Mumit Khan) To: help-gcc@gnu.org Subject: Re: what is -rdynamic supposed to do? Date: Fri, 31 Dec 1999 22:24:00 -0000 Message-ID: <82gi3u$lmo$1@news.doit.wisc.edu> References: X-SW-Source: 1999-12n/msg00076.html Message-ID: <19991231222400.Rdx2ovEsUYOlsJcNAfMJ_8amflDwVI4pcr_1RQli6Bo@z> In article < xtxn1romhpf.fsf@lucent.com >, Enrico Spinielli wrote: >Hi, >compiling some software downloaded from Internet I found that >the configuration for gcc came with a "-rdynamic" option. >I am using gcc version 2.95 but it does not have it. > What platform? On Linux/ELF for example, it is passed as --export-dynamic to GNU ld. From the GNU linker docs: `-E' `--export-dynamic' When creating a dynamically linked executable, add all symbols to the dynamic symbol table. The dynamic symbol table is the set of symbols which are visible from dynamic objects at run time. If you do not use this option, the dynamic symbol table will normally contain only those symbols which are referenced by some dynamic object mentioned in the link. If you use `dlopen' to load a dynamic object which needs to refer back to the symbols defined by the program, rather than some other dynamic object, then you will probably need to use this option when linking the program itself. Regards, Mumit