public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: khan@xraylith.wisc.edu (Mumit Khan)
To: help-gcc@gnu.org
Subject: Re: what is -rdynamic supposed to do?
Date: Mon, 06 Dec 1999 06:55:00 -0000	[thread overview]
Message-ID: <82gi3u$lmo$1@news.doit.wisc.edu> (raw)
In-Reply-To: <xtxn1romhpf.fsf@lucent.com>

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


WARNING: multiple messages have this Message-ID
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	[thread overview]
Message-ID: <82gi3u$lmo$1@news.doit.wisc.edu> (raw)
Message-ID: <19991231222400.Rdx2ovEsUYOlsJcNAfMJ_8amflDwVI4pcr_1RQli6Bo@z> (raw)
In-Reply-To: <xtxn1romhpf.fsf@lucent.com>

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


  reply	other threads:[~1999-12-06  6:55 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-12-06  3:38 Enrico Spinielli
1999-12-06  6:55 ` Mumit Khan [this message]
1999-12-31 22:24   ` Mumit Khan
1999-12-31 22:24 ` Enrico Spinielli

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='82gi3u$lmo$1@news.doit.wisc.edu' \
    --to=khan@xraylith.wisc.edu \
    --cc=help-gcc@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).