Skip to main content
added 16 characters in body
Source Link
0xC0000022L
  • 10.9k
  • 9
  • 41
  • 79

The easiest way to do this is with gdb. 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.

The easiest way to do this is with gdb. Put a breakpoint on the dlopen function, and change the parameters (likely passed on the stack). RTLD_NOW is defined as 2. Simply change it by 1 (RTLD_LAZY).

To sum up, in gdb

breakpoint dlopen
run
set stack_memory_address = 1
continue

Where stack_memory_address is the address of your mode parameter.

The easiest way to do this is with . Put a breakpoint on the dlopen function, and change the parameters (likely passed on the stack). RTLD_NOW is defined as 2. Simply change it by 1 (RTLD_LAZY).

To sum up, in gdb

breakpoint dlopen
run
set stack_memory_address = 1
continue

Where stack_memory_address is the address of your mode parameter.

Source Link
jvoisin
  • 2.5k
  • 17
  • 23

The easiest way to do this is with gdb. Put a breakpoint on the dlopen function, and change the parameters (likely passed on the stack). RTLD_NOW is defined as 2. Simply change it by 1 (RTLD_LAZY).

To sum up, in gdb

breakpoint dlopen
run
set stack_memory_address = 1
continue

Where stack_memory_address is the address of your mode parameter.