Re: ptrace single-stepping change breaks Wine
From: Thomas Sailer
Date: Fri Dec 31 2004 - 08:16:55 EST
On Donnerstag 30 Dezember 2004 14.06, you wrote:
> Tom, does this patch against Wine help? It should do the same thing as
> the setarch program, so if that fixes it then this should also (if I've
> understood how this mechanism works of course).
No this doesn't work. The decision which address space layout to use is done
in arch/i386/mm/mmap.c:arch_pick_mmap_layout, and this function is called by
the elf loader in fs/binfmt_elf.c:load_elf_binary, i.e. the decision which
address space layout to use for the current wine process is already done long
time before your personality syscall takes effect.
I hoped there was some ELF section magic to turn this off (like execshield),
but there doesn't seem to be.
Tom
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/