From mint-bounce@lists.fishpool.fi Mon Feb 1 16:39:05 2010 Message-ID: <4B67495B.1040502@freesbee.fr> Date: Mon, 01 Feb 2010 22:36:27 +0100 From: =?ISO-8859-1?Q?Vincent_Rivi=E8re?= User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.9.1.7) Gecko/20100111 Thunderbird/3.0.1 MIME-Version: 1.0 To: mint@lists.fishpool.fi Subject: Re: [MiNT] half off topic kernel Pexec/Pterm discussion References: <4B5F9E76.7070205@freesbee.fr> <4B6010B7.70306@freesbee.fr> <4B60189C.2000806@freesbee.fr> <4B671946.5040305@gandon.org> In-Reply-To: <4B671946.5040305@gandon.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed X-Antivirus: avast! (VPS 100201-0, 01/02/2010), Outbound message X-Antivirus-Status: Clean X-ecartis-version: Ecartis v1.0.0 Sender: mint-bounce@lists.fishpool.fi Errors-to: mint-bounce@lists.fishpool.fi X-original-sender: vincent.riviere@freesbee.fr Precedence: bulk List-help: List-unsubscribe: List-Id: X-List-ID: List-subscribe: List-owner: List-post: Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by mail.sparemint.org id o11Ld5ln017963 Benjamin Gandon wrote: > I don't know any system call that enables this running several processes > with shared TEXT segment. Does anyone knows about this? I don't know if there is such a thing in the FreeMiNT kernel. There is some old code in the binutils patch which checks for dangerous relocations: /* Check for dangerous relocations in images with a sharable text section. */ if ((myinfo->prg_flags & _MINT_F_SHTEXT) != 0 If I understand well it checks there is no relative reference from TEXT to DATA segment. The comment seems to indicate the TEXT segment can be shared. Thus the DATA segment may not be just after the TEXT segment. So this sanity check makes sense. This may be related to the -mbaserel GCC option, which has been deprecated for ages. This option is also no more supported by the MiNTLib. Also, I found that: http://sparemint.org/sparemint/html/packages/bash-mbaserel.html This bash version may have a shared TEXT segment. I'm sure about nothing because I never made any test with that. -- Vincent Rivière