From 23bdbca2d46a44c119d0a48bd31b6fb92d960b90 Mon Sep 17 00:00:00 2001 From: msmith Date: Thu, 17 Sep 1998 22:08:34 +0000 Subject: Add support for glibc consumers using the new ld-linux.so.2 linker. I can't say this was the most inspired fix, but it matches the design OK. --- sys/alpha/linux/linux_sysvec.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'sys/alpha') diff --git a/sys/alpha/linux/linux_sysvec.c b/sys/alpha/linux/linux_sysvec.c index 4b1380c..1474094 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"); -- cgit v1.1