This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
ld --wrap and zcat
- From: Shaun Jackman <sjackman at bcgsc dot ca>
- To: <binutils at sourceware dot org>
- Date: Mon, 24 Aug 2009 16:06:09 -0700
- Subject: ld --wrap and zcat
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