diff options
author | sos <sos@FreeBSD.org> | 1996-10-16 17:51:08 +0000 |
---|---|---|
committer | sos <sos@FreeBSD.org> | 1996-10-16 17:51:08 +0000 |
commit | a7dce0775e41a26320ae35eb227c1339ef490017 (patch) | |
tree | d72720304037f68df6726fde308a22bc5c01e935 /sys/i386 | |
parent | 4f23e86b1a5a97ce2cbd515ba8d13c6a63a6e071 (diff) | |
download | FreeBSD-src-a7dce0775e41a26320ae35eb227c1339ef490017.zip FreeBSD-src-a7dce0775e41a26320ae35eb227c1339ef490017.tar.gz |
Prepare kernel to take advantage of "branded" ELF binaries.
Diffstat (limited to 'sys/i386')
-rw-r--r-- | sys/i386/linux/linux_sysvec.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/sys/i386/linux/linux_sysvec.c b/sys/i386/linux/linux_sysvec.c index aa9c2d6..c70daf6 100644 --- a/sys/i386/linux/linux_sysvec.c +++ b/sys/i386/linux/linux_sysvec.c @@ -25,7 +25,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: linux_sysvec.c,v 1.7 1996/06/18 05:15:53 dyson Exp $ + * $Id: linux_sysvec.c,v 1.8 1996/10/15 18:24:34 bde Exp $ */ /* XXX we use functions that might not exist. */ @@ -405,10 +405,11 @@ struct sysentvec elf_linux_sysvec = { /* * Installed either via SYSINIT() or via LKM stubs. */ -Elf32_Interp_info linux_interp = { - &elf_linux_sysvec, +Elf32_Brandinfo linux_brand = { + "Linux", + "/compat/linux", "/lib/ld-linux.so.1", - "/compat/linux" + &elf_linux_sysvec }; #ifndef LKM @@ -416,5 +417,5 @@ Elf32_Interp_info linux_interp = { * XXX: this is WRONG, it needs to be SI_SUB_EXEC, but this is just at the * "proof of concept" stage and will be fixed shortly */ -SYSINIT(linuxelf, SI_SUB_VFS, SI_ORDER_ANY, elf_insert_interp, &linux_interp); +SYSINIT(linuxelf, SI_SUB_VFS, SI_ORDER_ANY, elf_insert_brand_entry, &linux_brand); #endif |