Commit: readelf: Recognise more EM_ ELF machine numbers.
Nick Clifton
nickc@redhat.com
Fri Mar 10 10:50:00 GMT 2017
Hi Guys,
I am applying the patch below to add a few new EM_ machine numbers to
the elf/common.h header file, and to update readelf's recognition of
these numbers. In order to help me make sure that we were not missing
any numbers in readelf's get_machine_name() function, I have also
taken the time to rearrange the switch table in order of increasing
value. That way we can keep track of missing numbers, and it should
be obvious where to add new numbers.
Cheers
Nick
include/ChangeLog
2017-03-10 Nick Clifton <nickc@redhat.com>
* elf/common.h (EM_LANAI): New machine number.
(EM_BPF): Likewise.
(EM_WEBASSEMBLY): Likewise.
Move low value, deprecated, numbers to their numerical
equivalents.
binutils/ChangeLog
2017-03-10 Nick Clifton <nickc@redhat.com>
* readelf.c (get_machine_name): Rearrange switch table in order of
increasing machine number. Add missing entries.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: em_numbers.patch
Type: text/x-patch
Size: 18644 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20170310/b7fb23a5/attachment.bin>
More information about the Binutils
mailing list