elfconstants: Group EF_* values and masks by machine architecture.
This change is intended to ease the implementation of an ELFTC(3) API that
returns the architecture-specific symbolic name for an e_flags value.
readelf: Replace custom code with the use of an -lelftc API.
Using ELFTC(3) APIs here reduces maintenance overheads when a new
EM_* constant needs to be supported.
This change alters the output of "readelf -h" for a few ELF machine
types. This should hopefully not be an issue in practice, since the
output of readelf(1) is primarily meant for human consumption.
libelftc: Implement elftc_reloc_type_str() using elftc_get_relocation_type_name().
This change reduces code duplication, and allows the
elftc_reloc_type_str() API to support all of the ELF
machine architectures and relocation types defined in
"common/sys/elfconstants.m4".
elfconstants: Update the set of EM_MIPS relocations.
The official processor-specific ABI definition for this architecture
is of 1996 vintage, and the opensource toolchains that support the
architecture have been defining their own extensions to its psABI.
Keep track of the provenance of each relocation type, to help with
future updates to this set.