[PATCH v3] Add support for nanoMIPS architecture
Nick Clifton
nickc@redhat.com
Tue Nov 22 12:31:42 GMT 2022
Hi Aleksandar,
> Add a subset of the functionality required for GDB.
Building the binutils configured as --enable-targets=all --enable-64-bit-bfd
I get a build failure:
/bin/ld: ../bfd/.libs/libbfd.a(elfxx-nanomips.o): in function `_bfd_elf_mips_mach':
bfd/elfxx-nanomips.c:227: multiple definition of `_bfd_elf_mips_mach';../bfd/.libs/libbfd.a(elfxx-mips.o):
bfd/elfxx-mips.c:6918: first defined here
Then there are the problems building readelf:
binutils/readelf.c: In function 'get_machine_name':
binutils/readelf.c:2962:5: error: duplicate case value
2962 | case EM_IMG1: return "Imagination Technologies";
binutils/readelf.c:2863:5: note: previously used here
2863 | case EM_NANOMIPS: return "Mips nanoMIPS";
binutils/readelf.c:17542:13: error: implicit declaration of function 'read_uleb128'; did you mean 'read_leb128'? [-Werror=implicit-function-declaration]
binutils/readelf.c:19429:14: error: 'NANOMIPS_ASE_XPA' undeclared (first use in this function); did you mean 'NANOMIPS_ASE_EVA'?
19429 | if (mask & NANOMIPS_ASE_XPA)
binutils/readelf.c:19472:23: error: passing argument 1 of 'process_attributes' from incompatible pointer type [-Werror=incompatible-pointer-types]
19472 | process_attributes (file, NULL, SHT_GNU_ATTRIBUTES, NULL,
... and more ...
Please could you check and fix these issues ?
Cheers
Nick
More information about the Binutils
mailing list