Ignore:
Timestamp:
Dec 20, 2009, 1:24:56 PM (11 years ago)
Author:
Sam Hocevar
Message:

Try to call _zz_init() as soon as possible. Otherwise, preloaded libraries
might be confused about half the calls actually working.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • zzuf/trunk/src/libzzuf/lib-load.h

    r4112 r4152  
    2727        do { \
    2828            if(!ORIG(x)) \
     29            { \
     30                /* XXX: we try to initialise libzzuf as soon as possible, \
     31                 * otherwise we may miss a lot of stuff if we wait for \
     32                 * the linker to load us fully. */ \
     33                _zz_init(); \
    2934                ORIG(x) = dlsym(RTLD_NEXT, STR(x)); \
     35            } \
    3036            if(!ORIG(x)) \
    3137                abort(); \
     
    3541#   define LOADSYM(x) \
    3642        do { \
    37             /* Nothing to do */ \
     43            /* Nothing to do under Windows, everything is done as soon \
     44             * as the process is launched. */ \
    3845        } while(0)
    3946#endif
Note: See TracChangeset for help on using the changeset viewer.