Re: ptrace single-stepping change breaks Wine

From: Thomas Sailer (sailer_at_scs.ch)
Date: 12/31/04

  • Next message: Gene Heskett: "Re: Linux 2.6.10-ac1"
    To: Mike Hearn <mh@codeweavers.com>
    Date:	Fri, 31 Dec 2004 14:13:16 +0100
    
    

    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@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/


  • Next message: Gene Heskett: "Re: Linux 2.6.10-ac1"

    Relevant Pages