public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
From: Shaun Jackman <sjackman@bcgsc.ca>
To: <binutils@sourceware.org>
Subject: ld --wrap and zcat
Date: Tue, 25 Aug 2009 00:15:00 -0000	[thread overview]
Message-ID: <4A931CE1.8090307@bcgsc.ca> (raw)

fstream::open in libstdc++ calls fopen in libc. I'd like to use ld 
--wrap to hook the fopen call to call popen to decompress a .gz file 
using zcat. Is this possible with ld --wrap? From my experimentation, 
it seems not. Is this possible using LD_PRELOAD and dlsym?

Thanks,
Shaun

             reply	other threads:[~2009-08-24 23:07 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-25  0:15 Shaun Jackman [this message]
2009-08-26  9:02 ` Nick Clifton
2009-08-26 19:35   ` Shaun Jackman

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=4A931CE1.8090307@bcgsc.ca \
    --to=sjackman@bcgsc.ca \
    --cc=binutils@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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).