Received: from list by lists.gnu.org with archive (Exim 4.71) id 1VgcHA-0005W9-GP for mharc-grub-devel@gnu.org; Wed, 13 Nov 2013 10:22:40 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59894) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VgcH2-0005Vd-HQ for grub-devel@gnu.org; Wed, 13 Nov 2013 10:22:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VgcGw-0005YL-DH for grub-devel@gnu.org; Wed, 13 Nov 2013 10:22:32 -0500 Received: from mail-ee0-f42.google.com ([74.125.83.42]:64508) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VgcGw-0005Y8-7s for grub-devel@gnu.org; Wed, 13 Nov 2013 10:22:26 -0500 Received: by mail-ee0-f42.google.com with SMTP id e52so288924eek.29 for ; Wed, 13 Nov 2013 07:22:25 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:subject:message-id:references :mime-version:content-type:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=d7rmUrJ9N+5HwGa6pS7eHyE2qfKdvarQqzf33o2cTJ4=; b=Dqa+Kfi6GDh+qGtZqzodlMjqNH+PWBQdAxh7bGgpMul3GddtwFjYSIRxN434bVNh6q 2Q905UzNfFWZ+1XovV/D5sABRkShZTY3OzEhGXaXBDVBkRTQr+VTFDqx4YSjN5nQePqh fiq1dTKSwBgS6M5XQH1EMzDYssXxuLbOAw0iYKpXjKV0xNuKCTo8G/VcVPXwYy7sGuFf SclcpfRBpt4iSvCNpb9EUZDCkiSCQKJsinNu41m/oxH14AK/RZ39K93xm07/IB6YRyc7 q+hsh326VfpmhQRqaJSuWK5XlG9sih0/KYeONHwoZne5JaE6sQVPBJfgzqEAGqKCopx6 JwLQ== X-Gm-Message-State: ALoCoQkDGiwMCyzawZl6SOSy9kuxDPOOSKmNwcmZihhvpyH83Ahgv5Z9Le9nw9ScDZqBXjLKsJrJ X-Received: by 10.14.115.133 with SMTP id e5mr939406eeh.91.1384356145065; Wed, 13 Nov 2013 07:22:25 -0800 (PST) Received: from rocoto.smurfnet.nu ([2001:4b98:dc0:41:216:3eff:fea7:75f3]) by mx.google.com with ESMTPSA id w6sm89173852eeo.12.2013.11.13.07.22.23 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 13 Nov 2013 07:22:24 -0800 (PST) Date: Wed, 13 Nov 2013 16:22:36 +0100 From: Leif Lindholm To: The development of GNU GRUB Subject: Re: arm-uboot: misc.S:56: Error: r13 not allowed here -- `sub sp,fp,#4' Message-ID: <20131113152236.GU1557@rocoto.smurfnet.nu> References: <20131113144919.GB30137@riva.ucam.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: <20131113144919.GB30137@riva.ucam.org> User-Agent: Mutt/1.5.21 (2010-09-15) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 74.125.83.42 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Nov 2013 15:22:38 -0000 On Wed, Nov 13, 2013 at 02:49:19PM +0000, Colin Watson wrote: > After my previous fix, arm-uboot still fails to build with: >=20 > arm-linux-gnueabihf-gcc -DHAVE_CONFIG_H -I. -I../../../grub-core -I.. = -Wall -W -I../../../include -I../include -DGRUB_MACHINE_UBOOT=3D1 -DGRUB_M= ACHINE_ARM=3D1 -DGRUB_MACHINE=3DARM_UBOOT -DGRUB_TARGET_CPU_ARM=3D1 -nostdi= nc -isystem /usr/lib/gcc-cross/arm-linux-gnueabihf/4.8/include -DGRUB_FILE= =3D\"lib/arg.c\" -I. -I../../../grub-core -I.. -I../../.. -I../../../includ= e -I../include -I../../../grub-core/lib/libgcrypt-grub/include -I../../../g= rub-core/lib/libgcrypt-grub/src/ -DGRUB_KERNEL=3D1 -Os -Wall -W -Wshado= w -Wold-style-definition -Wpointer-arith -Wundef -Wextra -Wattributes -Wcha= r-subscripts -Wcomment -Wdeprecated-declarations -Wdisabled-optimization -W= div-by-zero -Wendif-labels -Wfloat-equal -Wformat-extra-args -Wformat-secur= ity -Wformat-y2k -Wimplicit -Wimplicit-function-declaration -Wimplicit-int = -Winit-self -Wint-to-pointer-cast -Winvalid-pch -Wmain -Wmissing-braces -Wm= issing-field-initializers -Wmissing-format-attribute -Wmultichar -Wnonnull = -Woverflow -Wparentheses -Wpointer-arith -Wpointer-to-int-cast -Wreturn-typ= e -Wsequence-point -Wshadow -Wsign-compare -Wstrict-aliasing -Wswitch -Wtri= graphs -Wundef -Wunknown-pragmas -Wunused -Wunused-function -Wunused-label = -Wunused-parameter -Wunused-value -Wunused-variable -Wvariadic-macros -Wvo= latile-register-var -Wwrite-strings -Wnested-externs -Wstrict-prototypes -W= pointer-sign -g -Wredundant-decls -Wmissing-prototypes -Wmissing-declaratio= ns -Wcast-align -freg-struct-return -fno-dwarf2-cfi-asm -fno-asynchronous-u= nwind-tables -fno-stack-protector -mno-unaligned-access -Wtrampolines -Werr= or -DUSE_ASCII_FALLBACK=3D1 -DHAVE_UNIFONT_WIDTHSPEC=3D1 -mthumb-interw= ork -mlong-calls -ffreestanding -MT lib/kernel_exec-arg.o -MD -MP -MF lib= /.deps-core/kernel_exec-arg.Tpo -c -o lib/kernel_exec-arg.o `test -f 'lib/a= rg.c' || echo '../../../grub-core/'`lib/arg.c > misc.S: Assembler messages: > misc.S:56: Error: r13 not allowed here -- `sub sp,fp,#4' > make[3]: *** [kern/arm/kernel_exec-misc.o] Error 1 >=20 > I don't think SP can be used that way in Thumb mode? No, you would need to insert a mov sp, fp and then change to sub sp, sp, #4 / Leif