We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 26167b4 commit e34b29dCopy full SHA for e34b29d
src/linux/module.c
@@ -215,11 +215,11 @@ LM_LoadModuleEx(const lm_process_t *process,
215
ptlib.args[0] = path_addr;
216
ptlib.args[1] = RTLD_LAZY;
217
if (process->bits == 64) {
218
- *(int32_t *)&ptlib.stack[0] = (int32_t)RTLD_LAZY;
219
- *(uint64_t *)&ptlib.stack[4] = (uint64_t)path_addr;
+ *(uint64_t *)&ptlib.stack[0] = (uint64_t)path_addr;
+ *(int32_t *)&ptlib.stack[4] = (int32_t)RTLD_LAZY;
220
} else {
221
222
- *(uint32_t *)&ptlib.stack[4] = (uint64_t)path_addr;
+ *(uint32_t *)&ptlib.stack[0] = (uint64_t)path_addr;
223
}
224
225
if (ptrace_attach(process->pid))
0 commit comments