This is the mail archive of the cygwin-developers mailing list for the Cygwin project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
On 7/26/2013 9:37 AM, Christopher Faylor wrote: > On Fri, Jul 26, 2013 at 06:12:05PM +0200, Corinna Vinschen wrote: >> I don't know if that's a problem for them, but this reminds me... maybe >> we can use the LD_PRELOAD mechanism in hookapi.cc for that? > > I was thinking that we'd use something like that (re my use of PRELOAD > and your use of CW_HOOK) but, you're right. Someone could potentially > implement MSYS.dll via LD_PRELOAD: > > LD_PRELOAD=msys.dll > > and then have msys.dll hook the functions that it is interested in using > via CW_HOOK. By the way: can we make LD_PRELOAD hook all modules, not just the main program? If my LD_PRELOADed module hooks write(2) in foo.exe, which uses bar.dll, then write(2) from foo.exe will be intercepted, but write(2) from bar.dll won't be --- only foo.exe's import table is munged.
Attachment:
signature.asc
Description: OpenPGP digital signature
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |