linux-mips
[Top] [All Lists]

Re: Problems with mips2 compiled libc and linux 2.4.3

To: Brian Murphy <brian@murphy.dk>
Subject: Re: Problems with mips2 compiled libc and linux 2.4.3
From: Ralf Baechle <ralf@oss.sgi.com>
Date: Mon, 18 Jun 2001 20:22:39 +0200
Cc: "linux-mips@oss.sgi.com" <linux-mips@oss.sgi.com>
In-reply-to: <3B2E4458.1637A08A@murphy.dk>; from brian@murphy.dk on Mon, Jun 18, 2001 at 08:11:36PM +0200
References: <3B2E4458.1637A08A@murphy.dk>
Sender: owner-linux-mips@oss.sgi.com
User-agent: Mutt/1.2.5i
On Mon, Jun 18, 2001 at 08:11:36PM +0200, Brian Murphy wrote:

>         if (__h->e_flags & EF_MIPS_ARCH)
> \
>                 __res = 0;

> which is called in fs/binfmt_elf.c causes the loading of init to fail if
> it is linked with a glibc compiled with -mips2. It is the second if test
> which fails if any of the high 4 bits in the flags are set. According to
> the specs these are set for the various mipsx (x != 1) flavors - this seems
> to mean that we do no allow anything higher than mips1 run on linux -
> can this be
> true? If so, why?

Older binutils didn't use to set these flags but SGI's ld did so this was
a heuristc to reject IRIX binaries which are handled by irixelf.c.  The
fix is simple, just remove above test.

Time to come up with some other plan to detec IRIX binaries ...

  Ralf

<Prev in Thread] Current Thread [Next in Thread>