public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
From: Mark Mitchell <mark@codesourcery.com>
To: ian@zembu.com
Cc: binutils@sourceware.cygnus.com
Subject: Re: Your change to ldlang.c
Date: Fri, 02 Jul 1999 10:30:00 -0000	[thread overview]
Message-ID: <19990702103118S.mitchell@codesourcery.com> (raw)
In-Reply-To: <19990702143928.29375.qmail@daffy.airs.com>

>>>>> "Ian" == Ian Lance Taylor <ian@zembu.com> writes:

    Ian> Well, I wrote that comment in the first place.  The fact that
    Ian> I forgot to think about ld -r then doesn't necessarily imply
    Ian> that I am wrong now.

True 'nuff.

    Ian> My concern is related to relocations in other input sections
    Ian> which refer to symbols defined in the input section being
    Ian> discarded, particularly if those relocations refer to local
    Ian> symbols in the section being discarded.  The correct
    Ian> semantics would seem to be to convert those relocations to
    Ian> instead refer to the link once section which is being kept.

OK, now I see what's worrying you.  Obviously, a local symbol in the
LINK_ONCE section can only be a problem if it is referred to by
something outside the LINK_ONCE section.  The semantics of that are
really weird, anyhow, IMHO, although I am by no means a PE expert.
(I've actually researched PE to some degree, but by no means
exhaustively, in the past.)

    Ian> Actually, I'm going to revert my ld -r change, at least for
    Ian> now.  You've convinced me that it will never do the right
    Ian> thing as it stands, whereas removing it will at least
    Ian> sometimes do the right thing.  We can put it back again if we
    Ian> figure out some different way to solve the problems that it
    Ian> causes.

Thanks!

--
Mark Mitchell                   mark@codesourcery.com
CodeSourcery, LLC               http://www.codesourcery.com

  reply	other threads:[~1999-07-02 10:30 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-07-01 17:54 Mark Mitchell
1999-07-01 19:43 ` Ian Lance Taylor
1999-07-01 20:25   ` Mark Mitchell
1999-07-01 20:34     ` Ian Lance Taylor
1999-07-01 23:12       ` Mark Mitchell
1999-07-01 23:51         ` H.J. Lu
1999-07-02  7:27           ` Ian Lance Taylor
1999-07-02 16:31             ` Ralf Baechle
1999-07-02  1:00         ` Mikey
1999-07-02  7:25           ` Ian Lance Taylor
1999-07-02  7:40         ` Ian Lance Taylor
1999-07-02 10:30           ` Mark Mitchell [this message]
1999-07-06 18:35           ` Richard Henderson

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=19990702103118S.mitchell@codesourcery.com \
    --to=mark@codesourcery.com \
    --cc=binutils@sourceware.cygnus.com \
    --cc=ian@zembu.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).