public inbox for
 help / color / mirror / Atom feed
From: Ian Lance Taylor <>
Subject: Re: patch was: dwarf2 debug dependent upon GAS?
Date: Thu, 11 Mar 1999 18:02:00 -0000	[thread overview]
Message-ID: <> (raw)
In-Reply-To: <>

   From: Jason Merrill <>
   Date: 11 Mar 1999 11:20:22 -0800

    >    I assume that fixing this would dramatically improve link time for
    >    DWARF2?

    > I would not expect to see a dramatic improvement, but maybe there is
    > something I am overlooking.

   I was thinking that a bunch of relocs to the same symbol would resolve
   faster than relocs to different symbols; perhaps that's not the case.

No, it isn't.  Each reloc contains a symbol index.  When the linker
performs the relocations, it first computes a table of all the symbol
values; the linker must perform this operation anyhow in order to
generate the symbol table of the output file.  Then the linker loops
through the relocs, resolving them.  Calculating the value of a symbol
is just a table lookup.


      reply	other threads:[~1999-03-11 18:02 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <>
     [not found] ` <>
     [not found]   ` <>
     [not found]     ` <>
     [not found]       ` <>
     [not found]         ` <>
     [not found]           ` <>
1999-03-11  0:02             ` Jason Merrill
1999-03-11  7:41               ` Ian Lance Taylor
1999-03-11 10:31                 ` Jason Merrill
1999-03-11 10:44                   ` Ian Lance Taylor
1999-03-11 11:20                     ` Jason Merrill
1999-03-11 18:02                       ` 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:

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

  git send-email \ \ \ \ \ \

* 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).