ptrace single-stepping change breaks Wine

Thomas Sailer sailer at scs.ch
Fri Dec 31 07:13:16 CST 2004


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



More information about the wine-devel mailing list