dd35de7434
binutils/ 2010-01-08 H.J. Lu <hongjiu.lu@intel.com> * elfedit.c (input_elf_type): New. (output_elf_type): Likewise. (elf_type): Likewise. (update_elf_header): Support updating ELF file type. (command_line_switch): Add OPTION_INPUT_TYPE and OPTION_OUTPUT_TYPE. (options): Likewise. (usage): Add --input-type and --output-type. (main): Handle OPTION_INPUT_TYPE and OPTION_OUTPUT_TYPE. Check one of --output-mach and --output-type must be specified. * doc/binutils.texi: Document --input-type and --output-type for elfedit. binutils/testsuite/ 2010-01-08 H.J. Lu <hongjiu.lu@intel.com> * binutils-all/elfedit-2.d: New. * binutils-all/elfedit.exp: Run elfedit-2.
15 lines
248 B
Makefile
15 lines
248 B
Makefile
#PROG: elfedit
|
|
#elfedit: --output-type exec
|
|
#source: empty.s
|
|
#readelf: -h
|
|
#name: Update ELF header 2
|
|
#target: *-*-linux*
|
|
|
|
#...
|
|
ELF Header:
|
|
Magic: 7f 45 4c 46 .*
|
|
#...
|
|
Version:[ \t]+1 \(current\)
|
|
#...
|
|
Type:[ \t]+EXEC \(Executable file\)
|
|
#...
|