[PATCH v4] Add support for nanoMIPS architecture

Maciej W. Rozycki macro@orcam.me.uk
Fri Nov 25 11:22:04 GMT 2022


On Thu, 24 Nov 2022, Aleksandar Rikalo wrote:

> diff --git a/binutils/readelf.c b/binutils/readelf.c
> index 365c1ede0a1..5e0bda4d412 100644
> --- a/binutils/readelf.c
> +++ b/binutils/readelf.c
> @@ -1097,6 +1098,7 @@ guess_is_rela (unsigned int e_machine)
>      case EM_MSP430:
>      case EM_MSP430_OLD:
>      case EM_MT:
> +    case EM_IMG1:
>      case EM_NDS32:
>      case EM_NIOS32:
>      case EM_OR1K:

 Actually using EM_NANOMIPS throughout just as in v3 would make more sense 
than EM_IMG1.  The sole reason for the existence of EM_IMG1 was to have a 
placeholder before the name of nanoMIPS project could have been disclosed 
to the public.  I remember this being discussed, though I can't find a 
reference now (perhaps it was internal).

  Maciej


More information about the Binutils mailing list