The easiest way to do this is with gdbgdb. Put a breakpoint on the dlopendlopen
function, and change the parameters (likely passed on the stack). RTLD_NOWRTLD_NOW
is defined as 2. Simply change it by 1 (RTLD_LAZYRTLD_LAZY
).
To sum up, in gdbgdb
breakpoint dlopen
run
set stack_memory_address = 1
continue
Where stack_memory_addressstack_memory_address
is the address of your mode parameter.