[Top][All Lists]

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

Re: [PATCH] Revert "elf: Relax MIPS' elf_check_arch() to accept EM_NANOM

From: Richard Henderson
Subject: Re: [PATCH] Revert "elf: Relax MIPS' elf_check_arch() to accept EM_NANOMIPS too"
Date: Mon, 1 Nov 2021 13:51:10 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0

On 11/1/21 7:48 AM, Philippe Mathieu-Daudé wrote:
Per the "P32 Porting Guide" (rev 1.2) [1], chapter 2:

   p32 ABI Overview

   The Application Binary Interface, or ABI, is the set of rules
   that all binaries must follow in order to run on a nanoMIPS
   system. This includes, for example, object file format,
   instruction set, data layout, subroutine calling convention,
   and system call numbers. The ABI is one part of the mechanism
   that maintains binary compatibility across all nanoMIPS platforms.

   p32 improves on o32 to provide an ABI that is efficient in both
   code density and performance. p32 is required for the nanoMIPS

So far QEMU only support the MIPS o32 / n32 / n64 ABIs. The p32 ABI
is not implemented, therefore we can not run any nanoMIPS binary.

Revert commit f72541f3a59 ("elf: Relax MIPS' elf_check_arch() to
accept EM_NANOMIPS too").

See also the "ELF ABI Supplement" [2].


Signed-off-by: Philippe Mathieu-Daudé<f4bug@amsat.org>
  linux-user/elfload.c | 2 --
  1 file changed, 2 deletions(-)

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>


reply via email to

[Prev in Thread] Current Thread [Next in Thread]