summaryrefslogtreecommitdiffstats
path: root/sys/alpha
diff options
context:
space:
mode:
authorsos <sos@FreeBSD.org>1996-10-16 17:51:08 +0000
committersos <sos@FreeBSD.org>1996-10-16 17:51:08 +0000
commita7dce0775e41a26320ae35eb227c1339ef490017 (patch)
treed72720304037f68df6726fde308a22bc5c01e935 /sys/alpha
parent4f23e86b1a5a97ce2cbd515ba8d13c6a63a6e071 (diff)
downloadFreeBSD-src-a7dce0775e41a26320ae35eb227c1339ef490017.zip
FreeBSD-src-a7dce0775e41a26320ae35eb227c1339ef490017.tar.gz
Prepare kernel to take advantage of "branded" ELF binaries.
Diffstat (limited to 'sys/alpha')
-rw-r--r--sys/alpha/linux/linux_sysvec.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/sys/alpha/linux/linux_sysvec.c b/sys/alpha/linux/linux_sysvec.c
index aa9c2d6..c70daf6 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
OpenPOWER on IntegriCloud