From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25768 invoked by alias); 10 Aug 2007 07:06:58 -0000 Received: (qmail 25626 invoked by uid 22791); 10 Aug 2007 07:06:56 -0000 X-Spam-Check-By: sourceware.org Received: from omta03sl.mx.bigpond.com (HELO omta03sl.mx.bigpond.com) (144.140.92.155) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 10 Aug 2007 07:06:52 +0000 Received: from oaamta03sl.mx.bigpond.com ([58.174.192.75]) by omta03sl.mx.bigpond.com with ESMTP id <20070810070649.LHIH12810.omta03sl.mx.bigpond.com@oaamta03sl.mx.bigpond.com>; Fri, 10 Aug 2007 07:06:49 +0000 Received: from bubble.grove.modra.org ([58.174.192.75]) by oaamta03sl.mx.bigpond.com with ESMTP id <20070810070649.FAYD24129.oaamta03sl.mx.bigpond.com@bubble.grove.modra.org>; Fri, 10 Aug 2007 07:06:49 +0000 Received: by bubble.grove.modra.org (Postfix, from userid 500) id ED67D3A1B1C; Fri, 10 Aug 2007 16:36:48 +0930 (CST) Date: Fri, 10 Aug 2007 07:06:00 -0000 From: Alan Modra To: "Udo A. Steinberg" Cc: binutils@sourceware.org Subject: Re: Permission of overlapping segments Message-ID: <20070810070648.GM31829@bubble.grove.modra.org> Mail-Followup-To: "Udo A. Steinberg" , binutils@sourceware.org References: <20070809202029.6ca5e98b@laptop.hypervisor.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070809202029.6ca5e98b@laptop.hypervisor.org> User-Agent: Mutt/1.5.9i X-IsSubscribed: yes Mailing-List: contact binutils-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sourceware.org X-SW-Source: 2007-08/txt/msg00150.txt.bz2 On Thu, Aug 09, 2007 at 08:20:29PM +0200, Udo A. Steinberg wrote: > LOAD off 0x00000000 vaddr 0x00400000 paddr 0x00400000 align 2**12 > filesz 0x00000595 memsz 0x00000595 flags r-x > LOAD off 0x00000598 vaddr 0x00400598 paddr 0x00400598 align 2**12 > filesz 0x00000008 memsz 0x00001000 flags rw- > > What should an ELF loader do here - merge permissions such that 0x400000 > is rwx or is such a segment layout illegal? You're asking for trouble. The loader may refuse to load this file, or it may mmap the pages occupied by the second PT_LOAD segment on top of the first. -- Alan Modra Australia Development Lab, IBM