public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: hjl@lucon.org (H.J. Lu)
To: ddt@crack.com (Dave Taylor)
Cc: egcs@cygnus.com
Subject: Re: Incremental linking
Date: Fri, 10 Apr 1998 07:50:00 -0000	[thread overview]
Message-ID: <m0yNf7Z-00058wC@ocean.lucon.org> (raw)
In-Reply-To: <Pine.LNX.3.96.980409133155.9469B-100000@crack.crack.com>

> However, the desired use for this relinkable file is to be able to say
> something like:
> 
> gcc relinkable.o module1.o module2.o ... -o my_proggy
> 
> Where module1.o and module2.o may already be in the relinkable.o file, but
> because they've been specified on the command line, the symbols in those
> module*.o files override the symbols in the relinkable.o file.  Is there a
> way to get ld to behave this way?  Or was that half of the incremental

I am not sure. I think it is a linker bug.

> 
> We've also tried creating shared libraries which I guess basically defers
> the link until each module is needed at execution time.  This speeds
> things up rather a lot, but we noticed that gdb doesn't debug shared
> libraries very well for us.  If you step into a function that's in a

That is another linker bug.

> shared library, instead of popping in, it gets confused about what line
> number you're on, or it'll start stepping through what looks like
> hash-table glue code.  Not being able to debug hurts.

Please get binutils 2.8.1.0.30 from

ftp://ftp.yggdrasil.com/private/hjl

It should solve your shared library debugging problem. Let me know
if it doesn't work for you.


H.J.

  parent reply	other threads:[~1998-04-10  7:50 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-04-09 19:56 Dave Taylor
1998-04-10  0:39 ` Jeffrey A Law
1998-04-10 12:35   ` Ian Lance Taylor
1998-04-10 17:12     ` Andi Kleen
1998-04-11 11:54       ` Samuel Tardieu
1998-04-10  7:27 ` Richard Henderson
1998-04-10  7:50 ` H.J. Lu [this message]
1998-04-10 12:35   ` Ian Lance Taylor
2000-03-10 13:36 Incremental Linking Mike Ludwig
2000-03-10 15:10 ` Martin v. Loewis

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=m0yNf7Z-00058wC@ocean.lucon.org \
    --to=hjl@lucon.org \
    --cc=ddt@crack.com \
    --cc=egcs@cygnus.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).