Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S265933AbUALAxT (ORCPT ); Sun, 11 Jan 2004 19:53:19 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S265962AbUALAxT (ORCPT ); Sun, 11 Jan 2004 19:53:19 -0500 Received: from x35.xmailserver.org ([69.30.125.51]:47786 "EHLO x35.xmailserver.org") by vger.kernel.org with ESMTP id S265933AbUALAwy (ORCPT ); Sun, 11 Jan 2004 19:52:54 -0500 X-AuthUser: davidel@xmailserver.org Date: Sun, 11 Jan 2004 16:52:14 -0800 (PST) From: Davide Libenzi X-X-Sender: davide@bigblue.dev.mdolabs.com To: Bart Samwel cc: Linux Kernel Mailing List Subject: Re: [PATCH][TRIVIAL] Remove bogus "value 0x37ffffff truncated to 0x37ffffff" warning. In-Reply-To: <4001EED8.1000908@samwel.tk> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1435 Lines: 49 On Mon, 12 Jan 2004, Bart Samwel wrote: > Davide Libenzi wrote: > >>Now it seems to behave correctly: for '~' it always warns, for '-' it > >>only warns if the negative value is below -0x80000000. I'll submit a > >>patch to this effect (including the format extensions) to the binutils > >>people. > > > > binutils 2.14 works fine, so I believe they already fixed it. > > Against your code, yes. I'm using binutils 2.14 as well. Check it when > declaring a .long, like the kernel code does. Then it warns. Nope. It does not. Tested on three versions of binutils: [davide@bigblue davide]$ as << EOF > PG=0xC0000000 > VM=(128 << 20) > .long (-PG - VM) - 1 > .long (~PG + 1 - VM) - 1 > EOF [davide@bigblue davide]$ objdump -D a.out a.out: file format elf32-i386 Disassembly of section .text: 00000000 <.text>: 0: ff (bad) 1: ff (bad) 2: ff 37 pushl (%edi) 4: ff (bad) 5: ff (bad) 6: ff 37 pushl (%edi) Disassembly of section .data: Also, most important, the `make bzImage` does not give any warnings. - Davide - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/