From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7811 invoked by alias); 11 Sep 2009 15:05:48 -0000 Received: (qmail 7800 invoked by uid 22791); 11 Sep 2009 15:05:48 -0000 X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from caffeine.csclub.uwaterloo.ca (HELO caffeine.csclub.uwaterloo.ca) (129.97.134.17) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 11 Sep 2009 15:05:43 +0000 Received: from caffeine.csclub.uwaterloo.ca (localhost [127.0.0.1]) by caffeine.csclub.uwaterloo.ca (Postfix) with ESMTP id 54A1573EF3 for ; Fri, 11 Sep 2009 11:05:41 -0400 (EDT) Received: by caffeine.csclub.uwaterloo.ca (Postfix, from userid 20006) id 46C9F73F67; Fri, 11 Sep 2009 11:05:41 -0400 (EDT) To: gcc@gcc.gnu.org Subject: Re: Add support for the Win32 hook prologue (try 3) Message-Id: <20090911150541.46C9F73F67@caffeine.csclub.uwaterloo.ca> Date: Fri, 11 Sep 2009 15:05:00 -0000 From: rridge@csclub.uwaterloo.ca (Ross Ridge) Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org X-SW-Source: 2009-09/txt/msg00210.txt.bz2 Stefan Dösinger writes: >On a partly related topic, I think the Win64 ABI requires that the first >function is two bytes long, and there at least 6 bytes of slack before >the function. Does gcc implement that? As far as I can tell the Win64 ABI doesn't have either of these requirements. Microsoft's compiler certainly doesn't guarantee that functions begin with two byte instructions, and the "x64 Software Conventions" document gives examples of prologues with larger initial instructions: http://msdn.microsoft.com/en-us/library/tawsa7cb(VS.80).aspx Mind you, last I checked, GCC didn't actually follow the ABI requirements for prologues and epilogues given in the link above, but that only breaks ABI unwinding. Ross Ridge