Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: csilvers@google.com (Craig Silverstein)
To: drow@false.org
Cc: dj@redhat.com, binutils@sourceware.org, gdb@sourceware.org
Subject: Re: inflateInit?
Date: Thu, 10 Jul 2008 20:36:00 -0000	[thread overview]
Message-ID: <20080710203453.4A7333F3058@localhost> (raw)
In-Reply-To: <20080710201210.GA11942@caradoc.them.org> (message from Daniel 	Jacobowitz on Thu, 10 Jul 2008 16:12:10 -0400)

} I think the only thing we can do is add equivalent autoconf tests
} for zlib to other things which link to BFD but do not use libtool.

A hack I've done for this kind of thing in the past is to use weak
symbols.  The idea is that we have a weak definition of inflate(),
defined in bfd/compress.c, that is a noop.  If you link in zlib, you
get the real inflate, otherwise you use the weak inflate.

I know it's a hack, and a non-portable one, and may not work in any
case if you link in libz.a instead of libz.so.  But I could add it in
if folks thought it was worthwhile.

But I agree easiest is to clean up the sim.  It sounds like it's
discouraged for folks to use libbfd directly, so this may not be such
a widespread issue.

craig


  reply	other threads:[~2008-07-10 20:36 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-10 15:18 inflateInit? DJ Delorie
2008-07-10 16:14 ` inflateInit? Daniel Jacobowitz
2008-07-10 16:53   ` inflateInit? Craig Silverstein
2008-07-10 17:24     ` inflateInit? DJ Delorie
2008-07-10 18:52       ` inflateInit? Craig Silverstein
2008-07-10 19:24         ` inflateInit? DJ Delorie
2008-07-10 20:12           ` inflateInit? Daniel Jacobowitz
2008-07-10 20:36             ` Craig Silverstein [this message]
2008-07-10 22:11               ` inflateInit? Hans-Peter Nilsson
2008-07-11  0:56                 ` inflateInit? Craig Silverstein
2008-07-12 18:28                   ` inflateInit? H.J. Lu
2008-07-12 19:37                     ` inflateInit? Craig Silverstein
2008-07-13 15:58                       ` inflateInit? H.J. Lu
2008-07-13 19:34                         ` inflateInit? Craig Silverstein
2008-07-13 19:47                           ` inflateInit? H.J. Lu
2008-07-13 22:58                             ` inflateInit? Craig Silverstein
2008-07-13 23:42                               ` inflateInit? H.J. Lu
2008-07-10 20:40           ` inflateInit? Craig Silverstein

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=20080710203453.4A7333F3058@localhost \
    --to=csilvers@google.com \
    --cc=binutils@sourceware.org \
    --cc=dj@redhat.com \
    --cc=drow@false.org \
    --cc=gdb@sourceware.org \
    /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