From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1Zb0ps-0004v5-PU for mharc-grub-devel@gnu.org; Sun, 13 Sep 2015 02:32:24 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46029) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zb0pq-0004tt-L5 for grub-devel@gnu.org; Sun, 13 Sep 2015 02:32:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zb0pl-0000bk-LB for grub-devel@gnu.org; Sun, 13 Sep 2015 02:32:22 -0400 Received: from mail-la0-x232.google.com ([2a00:1450:4010:c03::232]:33063) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zb0pl-0000bg-DM for grub-devel@gnu.org; Sun, 13 Sep 2015 02:32:17 -0400 Received: by lamp12 with SMTP id p12so68809321lam.0 for ; Sat, 12 Sep 2015 23:32:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-type:content-transfer-encoding; bh=48w1JWAfqIVOSVQSb9qWhns9TTdstSdb+Oy14DLWCpQ=; b=QlWCqk3KduFiV2KsWk1Gy+y/bC7pjZrLECcRbQ2NPXIun/c5kGo8OXysmx6LjWaDCS fTVw7acVZg0bwIVT3ZtQU8k9iVXTYgCVolLUGPdVHMAwQvxMkoSSsQ63r6dV+zRAyXZs uPNQpUlGsDRpImrC+s7lv0JVd2C2t6YbxeVR3k+p8hQ1oPoaM/s9TOnTs7qSD7p5P3ns T6ZtwzpjXiBwE3dmHdbc55gXj4nj5qE5oc1nJZTM11SslcZxZPu0WbbZ6Ref0CZriILU 2JMlJ9gLB2G1JbXAVb1UyCHCYmse17MkBWADfTCEZPgWyvsRcM2yWXfyBKatHdy/uPY1 h03A== X-Received: by 10.112.184.137 with SMTP id eu9mr7178856lbc.21.1442125935918; Sat, 12 Sep 2015 23:32:15 -0700 (PDT) Received: from [192.168.1.43] (ppp91-76-134-130.pppoe.mtu-net.ru. [91.76.134.130]) by smtp.gmail.com with ESMTPSA id qy6sm1297963lbc.26.2015.09.12.23.32.14 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 12 Sep 2015 23:32:15 -0700 (PDT) Subject: Re: [PATCH v2] Ensure that MIPS target code is compiled for the O32 ABI. To: grub-devel@gnu.org References: <1440009323-8667-1-git-send-email-mhw@netris.org> <55D6A36D.205@gmail.com> <876147ryhy.fsf@netris.org> <55D99791.4080104@gmail.com> <87a8thuqmo.fsf_-_@netris.org> <55EF16C0.6010703@gmail.com> From: Andrei Borzenkov Message-ID: <55F5186E.5040306@gmail.com> Date: Sun, 13 Sep 2015 09:32:14 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: <55EF16C0.6010703@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c03::232 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: Sun, 13 Sep 2015 06:32:23 -0000 08.09.2015 20:11, Vladimir 'φ-coder/phcoder' Serbinenko пишет: > On 23.08.2015 23:50, Mark H Weaver wrote: >> Include -mabi=32 in CFLAGS_PLATFORM and CCASFLAGS_PLATFORM to compile >> code for the O32 ABI when targetting MIPS, since the MIPS assembly code >> in GRUB assumes this. > Could you be more precise where we assume this? Why not fix the assembly > instead? If I understand it correctly, this is not only about assembly - ABIs differ in sizes of types as well, so we'd need to define whole new CPU in grub. Not sure if it's worth it. We can consider ourselves lucky it was caught that early.