NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: port-mips/44375: NetBSD/mips 1.6 binary doesn't work on NetBSD/mips -current



The following reply was made to PR port-mips/44375; it has been noted by GNATS.

From: Izumi Tsutsui <tsutsui%ceres.dti.ne.jp@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: tsutsui%ceres.dti.ne.jp@localhost
Subject: Re: port-mips/44375: NetBSD/mips 1.6 binary doesn't work on NetBSD/mips
         -current
Date: Wed, 12 Jan 2011 23:25:52 +0900

 > >Synopsis:       NetBSD/mips 1.6 binary doesn't work on NetBSD/mips -current
  :
 > >Fix:
 > Check arch/mips/mips/cpu_exec.c etc?
 
 ENOEXEC here:
 ---
 int
 mips_netbsd_elf32_probe(struct lwp *l, struct exec_package *epp, void *eh0,
        char *itp, vaddr_t *start_p)
 {
  :
        switch (eh->e_flags & (EF_MIPS_ABI|EF_MIPS_ABI2)) {
 #if !defined(__mips_o32)
        case EF_MIPS_ABI2:
  :
 #endif
        case EF_MIPS_ABI_O32:
  :
        default:
                return ENOEXEC;
        }
 ---
 
 eh->e_flags is 0x0056, so
 eh->e_flags & (EF_MIPS_ABI|EF_MIPS_ABI2) == 0.
 
 Needs "case 0:" inside COMPAT_16 for ancient ELF binaries?
 
 ---
 Izumi Tsutsui
 


Home | Main Index | Thread Index | Old Index