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 10:01 AM, Christopher Faylor wrote: > Daniel Colascione's point is a stumbling block though since the > LD_PRELOAD method doesn't currently allow hooking anything other than > the main executable. That means that, say, ncurses wouldn't know about > an MSYS-hooked uname. It is possible to work around that but it would > require the addition of new code to the LD_PRELOAD mechanism, requiring > that we keep a table of hooked functions. You don't need to maintain your own table. When you hook, you just have to munge all the import tables of all currently-loaded modules, then munge the export table of the module you want to hook. Munging the export table will take care of any modules that load in the future.
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] |