From owner-freebsd-current Tue Nov 28 22:43:41 2000 Delivered-To: freebsd-current@freebsd.org Received: from palrel1.hp.com (palrel1.hp.com [156.153.255.242]) by hub.freebsd.org (Postfix) with ESMTP id 7AC6137B402; Tue, 28 Nov 2000 22:43:39 -0800 (PST) Received: from adlmail.cup.hp.com (adlmail.cup.hp.com [15.0.100.30]) by palrel1.hp.com (Postfix) with ESMTP id 62DA453B; Tue, 28 Nov 2000 22:43:38 -0800 (PST) Received: from cup.hp.com (p1000180.nsr.hp.com [15.109.0.180]) by adlmail.cup.hp.com (8.9.3 (PHNE_18546)/8.9.3 SMKit7.02) with ESMTP id WAA25192; Tue, 28 Nov 2000 22:43:37 -0800 (PST) Message-ID: <3A24A595.9DFD3FAA@cup.hp.com> Date: Tue, 28 Nov 2000 22:43:33 -0800 From: Marcel Moolenaar Organization: Hewlett-Packard X-Mailer: Mozilla 4.73 [en] (X11; U; Linux 2.2.12 i386) X-Accept-Language: en MIME-Version: 1.0 To: bmah@FreeBSD.ORG Cc: janb@cs.utep.edu, dmaddox@sc.rr.com, current@FreeBSD.ORG Subject: Re: Other Linux stuff... References: <3A246C02.8963917F@cup.hp.com> <200011290513.eAT5DDI63288@bmah-freebsd-0.cisco.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG "Bruce A. Mah" wrote: > > If memory serves me right, Marcel Moolenaar wrote: > > > So, from a pure > > ELF layout point of view, both shared objects and executables are the > > same. But a shared library is not guaranteed to be executable. Allowing > > shared objects to be executed is in violation with the specs: > > This may be a really stupid question, but what on Earth do they gain by > allowing the execution of shared object files? The only gain I see, if you can call it a gain, is that you can get non-trivial information out of a shared object from within scripts, but I don't know if this has been the reason. If you don't allow execution of shared objects, you have to use dlopen(3) and call some functions or query some variables. -- Marcel Moolenaar mail: marcel@cup.hp.com / marcel@FreeBSD.org tel: (408) 447-4222 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message