From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20597 invoked by alias); 12 Sep 2009 15:12:48 -0000 Received: (qmail 20498 invoked by uid 22791); 12 Sep 2009 15:12:47 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mail-ew0-f216.google.com (HELO mail-ew0-f216.google.com) (209.85.219.216) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 12 Sep 2009 15:12:43 +0000 Received: by mail-ew0-f216.google.com with SMTP id 12so2040146ewy.0 for ; Sat, 12 Sep 2009 08:12:43 -0700 (PDT) Received: by 10.211.146.38 with SMTP id y38mr4744376ebn.60.1252768363049; Sat, 12 Sep 2009 08:12:43 -0700 (PDT) Received: from ?192.168.2.99? (cpc2-cmbg8-0-0-cust61.cmbg.cable.ntl.com [82.6.108.62]) by mx.google.com with ESMTPS id 7sm3488632eyg.10.2009.09.12.08.12.41 (version=SSLv3 cipher=RC4-MD5); Sat, 12 Sep 2009 08:12:42 -0700 (PDT) Message-ID: <4AABBDB7.70501@gmail.com> Date: Sat, 12 Sep 2009 15:12:00 -0000 From: Dave Korn User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) MIME-Version: 1.0 To: =?ISO-8859-1?Q?Stefan_D=F6singer?= CC: Dave Korn , gcc-patches@gcc.gnu.org, Richard Henderson , Kai Tietz , "binutils@sourceware.org" Subject: Re: Add support for the Win32 hook prologue (try 3) References: <20090911153422.2730E73F67@caffeine.csclub.uwaterloo.ca> <200909121204.18146.stefan@codeweavers.com> <4AAB9D7E.9090602@gmail.com> <200909121522.40419.stefan@codeweavers.com> In-Reply-To: <200909121522.40419.stefan@codeweavers.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-IsSubscribed: yes Mailing-List: contact binutils-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sourceware.org X-SW-Source: 2009-09/txt/msg00350.txt.bz2 Stefan Dösinger wrote: > Am Saturday 12 September 2009 15:09:18 schrieb Dave Korn: >> ".align X,0x90" or ".align X,0xcc" should work. The .align instruction >> has optional second and third operands which are little-used; check the GAS >> manual for the full syntax. > align X, 0x90 doesn't work, as someone else has already posted. Gas still > replaces e.g. 3 NOPs generated by that with one 3-byte nop. Argh, missed that. I think that should probably be considered a binutils bug shouldn't it? I don't think it should relax an explicit ".align X,0x90" any more than it should relax "dc.b 0x90,0x90,0x90" IMO. cheers, DaveK