aboutsummaryrefslogtreecommitdiff
path: root/sys/alpha/linux/linux_sysvec.c
diff options
context:
space:
mode:
authorMike Smith <msmith@FreeBSD.org>1998-09-17 22:08:34 +0000
committerMike Smith <msmith@FreeBSD.org>1998-09-17 22:08:34 +0000
commit4e138a28a0b874191807603da74148b06b4167d3 (patch)
treefd8487d10919ad50d076c030fbfd5f02a4589db2 /sys/alpha/linux/linux_sysvec.c
parentf7d09fba58ff051806230251b54df970551f6997 (diff)
Notes
Diffstat (limited to 'sys/alpha/linux/linux_sysvec.c')
-rw-r--r--sys/alpha/linux/linux_sysvec.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/sys/alpha/linux/linux_sysvec.c b/sys/alpha/linux/linux_sysvec.c
index 4b1380c9e80a..14740948ec49 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.32 1998/08/16 01:21:50 bde Exp $
+ * $Id: linux_sysvec.c,v 1.33 1998/09/14 05:36:48 jdp Exp $
*/
/* XXX we use functions that might not exist. */
@@ -434,6 +434,13 @@ Elf32_Brandinfo linux_brand = {
&elf_linux_sysvec
};
+Elf32_Brandinfo linux_glibc2brand = {
+ "Linux",
+ "/compat/linux",
+ "/lib/ld-linux.so.2",
+ &elf_linux_sysvec
+ };
+
#ifndef LKM
/*
* XXX: this is WRONG, it needs to be SI_SUB_EXEC, but this is just at the
@@ -445,7 +452,8 @@ static void
linux_elf_init(dummy)
void *dummy;
{
- if (elf_insert_brand_entry(&linux_brand) < 0)
+ if ((elf_insert_brand_entry(&linux_brand) < 0) ||
+ (elf_insert_brand_entry(&linux_glibc2brand) < 0))
printf("cannot insert Linux elf brand handler\n");
else if (bootverbose)
printf("Linux-ELF exec handler installed\n");