Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 26 Dec 2005 03:17:35 -0800
From:      Maxim Sobolev <sobomax@portaone.com>
To:        Olivier Houchard <cognet@FreeBSD.ORG>
Cc:        cvs-src@FreeBSD.ORG, src-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG
Subject:   Re: cvs commit: src/sys/kern imgact_elf.c
Message-ID:  <43AFD14F.9050303@portaone.com>
In-Reply-To: <200511142224.jAEMO0RG057965@repoman.freebsd.org>
References:  <200511142224.jAEMO0RG057965@repoman.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi,

IMHO this approach is suboptimal, since it depends on user's ability to 
debug reason of failure of each particular script. I think since target 
platform allows execution of shared libs by default our emulation layer 
should do the same without requiring user to set some obscure sysctls first.

I have prepared a patch to remove that sysctl and make such behaviour 
default for linux ELF shared libs. Patch can be found here:

http://www.pbxpress.com/~sobomax/linux_et_dynamic.patch

If there are no objections I would like to commit it (also removing 
respective linux.4 delta).

Thanks!

Regards,

Maxim

Olivier Houchard wrote:
> cognet      2005-11-14 22:24:00 UTC
> 
>   FreeBSD src repository
> 
>   Modified files:
>     sys/kern             imgact_elf.c 
>   Log:
>   Add a new sysctl, kern.elf[32|64].can_exec_dyn. When set to 1, one can
>   execute a ET_DYN binary (shared object).
>   This does not make much sense, but some linux scripts expect to be able to
>   execute /lib/ld-linux.so.2 (ldd comes to mind).
>   The sysctl defaults to 0.
>   
>   MFC after:      3 days
>   
>   Revision  Changes    Path
>   1.166     +7 -1      src/sys/kern/imgact_elf.c
> 
> 
> 




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?43AFD14F.9050303>