diff options
author | Søren Schmidt <sos@FreeBSD.org> | 1996-10-16 17:51:08 +0000 |
---|---|---|
committer | Søren Schmidt <sos@FreeBSD.org> | 1996-10-16 17:51:08 +0000 |
commit | ea5a2b2e00fd60ac2fa3424e2b18e04f29bbd344 (patch) | |
tree | d72720304037f68df6726fde308a22bc5c01e935 /sys/alpha | |
parent | 953441e43bc811704bf1846076b2cbd5dfaf6884 (diff) | |
download | src-ea5a2b2e00fd60ac2fa3424e2b18e04f29bbd344.tar.gz src-ea5a2b2e00fd60ac2fa3424e2b18e04f29bbd344.zip |
Prepare kernel to take advantage of "branded" ELF binaries.
Notes
Notes:
svn path=/head/; revision=18959
Diffstat (limited to 'sys/alpha')
-rw-r--r-- | sys/alpha/linux/linux_sysvec.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/sys/alpha/linux/linux_sysvec.c b/sys/alpha/linux/linux_sysvec.c index aa9c2d68bae8..c70daf63d500 100644 --- a/sys/alpha/linux/linux_sysvec.c +++ b/sys/alpha/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 |