linux-mips
[Top] [All Lists]

Re: [PATCHv2] MIPS: fix vmlinuz build for 32bit-only math shells

To: Alexander Clouter <alex@digriz.org.uk>
Subject: Re: [PATCHv2] MIPS: fix vmlinuz build for 32bit-only math shells
From: Ralf Baechle <ralf@linux-mips.org>
Date: Fri, 22 Jan 2010 15:52:56 +0100
Cc: linux-mips@linux-mips.org
In-reply-to: <vs6k27-7b2.ln1@chipmunk.wormnet.eu>
References: <vs6k27-7b2.ln1@chipmunk.wormnet.eu>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mutt/1.5.20 (2009-08-17)
On Wed, Jan 20, 2010 at 08:50:07PM +0000, Alexander Clouter wrote:

> Counter to the documentation for the dash shell, it seems that on my
> x86_64 filth under Debian only does 32bit math.  As I have configured my

POSIX apparently specifies at least "long" type arithmetic for shells, so
if your dash indeed is a 64-bit binary it's in violation of POSIX.  What
does

  file $(which $SHELL)

say?

The dash binary on my Fedora 12 i386 seems to perform 64-bit arithmetic.

  Ralf

<Prev in Thread] Current Thread [Next in Thread>