public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: Jeffrey A Law <law@cygnus.com>
To: manfred@s-direktnet.de, Manfred.Hollstein@ks.sel.alcatel.de
Cc: ram@netcom.com, egcs@cygnus.com
Subject: Re: SunOS shared libs ?
Date: Thu, 09 Jul 1998 22:16:00 -0000	[thread overview]
Message-ID: <1144.900047547@hurl.cygnus.com> (raw)
In-Reply-To: <13732.58164.680856.974625@slsvhmt>

  In message < 13732.58164.680856.974625@slsvhmt >you write:
  >   if (constructors.number == 0 && destructors.number == 0
  >       && frame_tables.number == 0
  > #if defined (SCAN_LIBRARIES) || defined (COLLECT_EXPORT_LIST)
  >       /* If we will be running these functions ourselves, we want to emit
  >          stubs into the shared library so that we do not have to relink
  >          dependent programs when we add static objects.  */
  >       && ! shared_obj
  > #endif
  >       )
  > 
  > Obviously, the *.number  == 0 checks are all  true, and shared_obj  is
  > also true, hence it's going  the write_c_file way. Does anybody  know,
  > why  the  stubs are still  required,  even  if no  CTOR/DTORs or frame
  > tables are available? I think, this is plain wrong.
I believe this is the desired behavior.

Imagine if you later recreate the library -- without changing the
interfaces, but it now has an object that needs constructing.

If you don't have the stubs already in the library, then any program
that was linked against the library will need to be re-linked against
the new library.

jeff

  reply	other threads:[~1998-07-09 22:16 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-07-08  7:59 Munagala V. S. Ramanath
1998-06-11 11:04 ` Manfred Hollstein
1998-07-08 22:15 ` Jeffrey A Law
1998-07-09  9:13   ` Manfred Hollstein
1998-07-09 22:16     ` Jeffrey A Law [this message]
1998-07-10  7:01       ` Manfred Hollstein
  -- strict thread matches above, loose matches on Subject: below --
1998-07-09  8:45 Munagala V. S. Ramanath
1998-07-09 10:46 ` Jeffrey A Law
1998-06-10  7:36 Munagala V. S. Ramanath
1998-06-10 12:47 ` Manfred.Hollstein
1998-06-10  9:23   ` Jeffrey A Law
1998-06-11 11:04     ` Manfred Hollstein
1998-06-09  7:48 Munagala V. S. Ramanath
1998-06-10  4:39 ` Manfred Hollstein

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=1144.900047547@hurl.cygnus.com \
    --to=law@cygnus.com \
    --cc=Manfred.Hollstein@ks.sel.alcatel.de \
    --cc=egcs@cygnus.com \
    --cc=manfred@s-direktnet.de \
    --cc=ram@netcom.com \
    /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).