elfedit: Move ELF header magic bytes check to get_file_header
authorH.J. Lu <hjl.tools@gmail.com>
Sat, 3 Nov 2018 22:03:34 +0000 (15:03 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Sat, 3 Nov 2018 22:06:49 +0000 (15:06 -0700)
commit675accbdcb5b50182a10dd112b7179b5b6337191
treeb89f7ffa83c1a98588c21e38816cdee9f77c5d2f
parent470678d7c92df4c016c6b4d8dadbd5d5e86cb5ff
elfedit: Move ELF header magic bytes check to get_file_header

Skip the file if ELF header magic bytes doesn't match.

* elfedit.c (update_elf_header): Move EI_MAG? check to ...
(get_file_header): Here.
binutils/ChangeLog
binutils/elfedit.c