mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-21 04:42:53 +08:00
6c14750f48
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. binutils/testsuite/ * binutils-all/elfedit-5.d: New file. * binutils-all/elfedit.exp: Run elfedit-5.
18 lines
437 B
Makefile
18 lines
437 B
Makefile
#PROG: elfedit
|
|
#elfedit: --output-mach iamcu
|
|
#source: empty.s
|
|
#as: --32
|
|
#readelf: -h
|
|
#name: Update ELF header 5
|
|
#target: x86_64-*-* i386-*-*
|
|
|
|
#...
|
|
ELF Header:
|
|
Magic: 7f 45 4c 46 01 01 01 00 00 00 00 00 00 00 00 00
|
|
Class: ELF32
|
|
Data: 2's complement, little endian
|
|
Version: 1 \(current\)
|
|
#...
|
|
Machine: Intel MCU
|
|
#...
|