[Serdev] RTLD_NOW vs. DL_LAZY in sr_module.c

Hendrik Scholz hscholz at raisdorf.net
Sun Apr 16 12:26:02 UTC 2006


Hi!

I was looking into bug SER-105 and found this snippet in sr_module.c:

#ifndef RTLD_NOW
/* for openbsd */
#define RTLD_NOW DL_LAZY
#endif

_NOW and _LAZY are somewhat of a contradiction here.
Are there any reasons for using the lazy mechanism on OpenBSD?

SER would bail out on load if _NOW was used which seems to
be the preferred behaviour.
It also might speed up the first call to the function in live
traffic since all references are resolved upon SER startup ;-)

Greetings,
  Hendrik

-- 
Hendrik Scholz - <hscholz at raisdorf.net> - http://www.wormulon.net/
drag me, drop me - treat me like an object




More information about the Serdev mailing list