Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932830AbXBXNuZ (ORCPT ); Sat, 24 Feb 2007 08:50:25 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932822AbXBXNuZ (ORCPT ); Sat, 24 Feb 2007 08:50:25 -0500 Received: from mail.enyo.de ([212.9.189.167]:1051 "EHLO mail.enyo.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932830AbXBXNuY (ORCPT ); Sat, 24 Feb 2007 08:50:24 -0500 From: Florian Weimer To: Samium Gromoff <_deepfire@feelingofgreen.ru> Cc: Kyle Moffett , David Wagner , LKML Kernel Subject: Re: [PATCH] Undo some of the pseudo-security madness References: <87r6toufpp.wl@betelheise.deep.net> <1D317613-B0B6-4517-81B5-DBF3978FA413@mac.com> <87lkjvvnc6.wl@betelheise.deep.net> <87k5y799lo.fsf@mid.deneb.enyo.de> <87irdrbry6.wl@betelheise.deep.net> Date: Sat, 24 Feb 2007 14:49:34 +0100 In-Reply-To: <87irdrbry6.wl@betelheise.deep.net> (Samium Gromoff's message of "Sat, 24 Feb 2007 16:33:53 +0300") Message-ID: <87d53z1x8x.fsf@mid.deneb.enyo.de> 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: 1183 Lines: 29 * Samium Gromoff: >> > Lisp environments can produce standalone executables >> >> If you've got a stand-alone executable, you don't need MAP_FIXED. The >> ELF loader maps the program at a fixed address anyway (at least on >> i386 and x86_64, I haven't checked others). > > Not so. > > The thing is that the picture is of two pieces: > > - the executable > - the unrelocatable lisp core (which is unrelocatable by the virtue > of non-PIC code) which is mapped into the AS of the executable. > > It is the latter which breaks, as its map can overlap with randomized > pieces of the executable (along with its libraries). I think it boils down to the question if you can use ELF relocations to create a relocatable (but not necessarily position-independent) object that ld can link with the SBCL run-time system to produce an executable. This executable would truly be stand-alone because no separate core file is required anymore. - 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/