Commit: Add new ELF machine numbers to common.h

Nick Clifton nickc@redhat.com
Mon Oct 17 10:46:00 GMT 2016


Hi Guys,

  I am applying the attached patch to update the constants defined in
  include/elf/common.h.  In particular I am adding ELF machine numbers
  (and other constants) that are defined in this document, but which
  we did not have in common.h

     http://www.sco.com/developers/gabi/latest/contents.html

  The patch also includes an update to readelf to help it recognise
  these new values.

Cheers
  Nick

include/ChangeLog
2016-10-17  Nick Clifton  <nickc@redhat.com>

	* elf/common.h (DT_SYMTAB_SHNDX): Define.
	(EM_CLOUDSHIELD, EM_COREA_1ST, EM_COREA_2ND, EM_OPEN8): Define.
	(EM_VIDEOCORE5, EM_56800EX, EM_BA1, EM_BA2, EM_XCORE): Define.
	(EM_MCHP_PIC, EM_KM32, EM_KMX32, EM_KMX16, EM_KMX8): Define.
	(EM_KVARC, EM_CDP, EM_COGE, EM_COOL, EM_NORC): Define.
	(EM_CSR_KALIMBA, EM_Z80, EM_AMDGPU, EM_RISCV): Define.
	(ELFOSABI_OPENVOS): Define.
	(GRP_MASKOS, GRP_MASKPROC): Define.

binutils/ChangeLog
2016-10-17  Nick Clifton  <nickc@redhat.com>

	* readelf.c (get_dynamic_type): Add DT_SYMTAB_SHNDX.
	(get_machine_type): Add EM_CLOUDSHIELD, EM_COREA_1ST,
	EM_COREA_2ND, EM_OPEN8, EM_VIDEOCORE5, EM_56800EX, EM_BA1, EM_BA2,
	EM_XCORE, EM_MCHP_PIC, EM_KM32, EM_KMX32, EM_KMX16, EM_KMX8,
	EM_KVARC, EM_CDP, EM_COGE, EM_COOL, EM_NORC, EM_CSR_KALIMBA,
	EM_Z80, EM_AMDGPU, EM_RISCV.
	(get_osabi_name): Add ELFOSABI_CLOUDABI and ELFOSABI_OPENVS.
	(get_group_flags): Update to handle flags in the
	GRP_MASKOS and GRP_MASKPROC ranges.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: elf.patch
Type: text/x-patch
Size: 7742 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20161017/abb43c7e/attachment.bin>


More information about the Binutils mailing list