public inbox for gas2@sourceware.org
 help / color / mirror / Atom feed
From: Ian Lance Taylor <ian@cygnus.com>
To: hjl@zoom.com
Cc: eric@aib.com, gas2@cygnus.com
Subject: Re: -Bsymbolic is broken in ld
Date: Mon, 29 Jan 1996 11:29:00 -0000	[thread overview]
Message-ID: <199601291929.OAA06380@sanguine.cygnus.com> (raw)
In-Reply-To: <199601291632.IAA11943@aurora.romoidoy.com>

   From: H J Lu <hjl@zoom.com>
   Date: Mon, 29 Jan 1996 08:32:24 -0800 (PST)

   I think -Bsymbolic in ld is broken. It doesn't work in most cases.

I just checked in a patch which fixes the case I know of, namely the
problem you sent me.  Please let me know if there are any other
problems.

   May I suggest one approach?

   1. Remove all the old -Bsymbolic stuff, except for setting DT_SYMBOLIC.
   2. Add the BSF_SYMBOLIC bit to the symbol flag in addition to
      BSF_GLOBAL, BSF_WEAK, BSF_LOCAL, ...
   3. If the BSF_SYMBOLIC bit is set, the symbol is treated just
      like a local symbol.
   3. When writing to the disk, clear the BSF_SYMBOLIC bit.

   Ian, Eric, will that work? I really like to see -Bsymbolic get fixed.

This is more complex than the current approach.  The trick is in step
3, in knowing when to treat the symbol as local and when to treat it
as global.  When you have determined that, it is just as easy to
simply check whether the -Bsymbolic flag was specified as it is to see
whether the BSF_SYMBOLIC flag was set for the symbol.

Ian


      reply	other threads:[~1996-01-29 11:29 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-01-29  8:32 H J Lu
1996-01-29 11:29 ` Ian Lance Taylor [this message]

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=199601291929.OAA06380@sanguine.cygnus.com \
    --to=ian@cygnus.com \
    --cc=eric@aib.com \
    --cc=gas2@cygnus.com \
    --cc=hjl@zoom.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).