[PATCH v7] MIPS: Sync elf.h from binutils

Florian Weimer fweimer@redhat.com
Mon Aug 7 16:30:58 GMT 2023


* Ying Huang:

> From: Ying Huang <ying.huang@oss.cipunited.com>
>
> Add new definitions for the MIPS target, specifically: relocation
> types, machine flags, section type names, and object attribute tags
> and values.  On MIPS64, up to three relocations may be specified
> within r_info, by the r_type, r_type2, and r_type3 fields, so add new
> macros to get the respective reloc types for MIPS64.

Sorry, it's a bit of a mystery against what exactly you are syncing.
Current binutils has E_MIPS_MACH_ALLEGREX, which you are not adding.  On
the other hand, binutils lacks EF_MIPS_ARCH_32R6, which your patch adds.
(These are just two illustrative examples.)

At least from the glibc side, this now looks okay, it's just about
documenting where the constants come from.

Thanks,
Florian



More information about the Libc-alpha mailing list