This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: what is -rdynamic supposed to do?
- To: help-gcc at gnu dot org
- Subject: Re: what is -rdynamic supposed to do?
- From: khan at xraylith dot wisc dot edu (Mumit Khan)
- Date: 6 Dec 1999 14:44:14 GMT
- Newsgroups: gnu.gcc.help
- Organization: Center for X-ray Lithography, UW-Madison
- References: <xtxn1romhpf.fsf@lucent.com>
- Xref: wodc7nx0 gnu.gcc.help:2087
In article <xtxn1romhpf.fsf@lucent.com>,
Enrico Spinielli <espinielli@lucent.com> 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