From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8391 invoked by alias); 18 Feb 2010 13:41:50 -0000 Received: (qmail 8279 invoked by uid 22791); 18 Feb 2010 13:41:49 -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.codesourcery.com (HELO mail.codesourcery.com) (38.113.113.100) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 18 Feb 2010 13:41:45 +0000 Received: (qmail 9277 invoked from network); 18 Feb 2010 13:41:44 -0000 Received: from unknown (HELO caradoc.them.org) (dan@127.0.0.2) by mail.codesourcery.com with ESMTPA; 18 Feb 2010 13:41:44 -0000 Date: Thu, 18 Feb 2010 13:41:00 -0000 From: Daniel Jacobowitz To: Jan Kratochvil Cc: gdb@sourceware.org Subject: Re: CORE_ADDR representation Message-ID: <20100218134137.GA17163@caradoc.them.org> Mail-Followup-To: Jan Kratochvil , gdb@sourceware.org References: <20100218044416.GA19485@caradoc.them.org> <20100218103404.GA1597@host0.dyn.jankratochvil.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20100218103404.GA1597@host0.dyn.jankratochvil.net> User-Agent: Mutt/1.5.20 (2009-06-14) Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2010-02/txt/msg00123.txt.bz2 On Thu, Feb 18, 2010 at 11:34:04AM +0100, Jan Kratochvil wrote: > these "& mask" parts can be removed. This masking was there already before > start of the PIE(+OSX) patches. I don't understand. How can the masking possibly be removed? If you don't mask, 0x50000000 + 0x40000000 == 0x90000000 and that's not going to work on MIPS where we need 0xffffffff90000000. > I thought about their removal only just as a simplification in future but it > looks to be required for mips*. Downloading some mips .iso if it will run in > qemu to test it. This won't show the same problem, you'll need to use mips-elf instead. MIPS Linux places application code below 0x80000000 exclusively; MIPS ELF (at least some versions) starts applications in KSEG0, at 0x80000000. -- Daniel Jacobowitz CodeSourcery