[committed, PATCH] Add EM_386/EM_IAMCU support to elfedit.c

Alan Modra amodra@gmail.com
Wed May 13 08:54:00 GMT 2015


On Mon, May 11, 2015 at 09:59:57AM -0700, H.J. Lu wrote:
> binutils/
> 
> 	* elfedit.c (enum elfclass): New.
> 	(input_elf_class): Change type to enum elfclass.
> 	(output_elf_class): New.
> 	(elf_class): Change return type to enum elfclass.  Support EM_386
> 	and EM_IAMCU.
> 	(update_elf_header): Check if input and output ELF classes match.
> 	(elf_machine): Support EM_386 and EM_IAMCU.
> 	(main): Update input_elf_class.  Set output_elf_class.
> 	* doc/binutils.texi: Update elfedit.

This change broke powerpc64-linux and probably every ELF target
other than x86.

-- 
Alan Modra
Australia Development Lab, IBM



More information about the Binutils mailing list