]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Have readelf warn users if it is asked to decode a LLVM bitcode file or a golang...
authorNick Clifton <nickc@redhat.com>
Mon, 22 Aug 2022 10:15:40 +0000 (11:15 +0100)
committerNick Clifton <nickc@redhat.com>
Mon, 22 Aug 2022 10:15:40 +0000 (11:15 +0100)
commit521f726815eb426660f6b9ecc005fbab6c1b00ea
treedbb189b697b1f865d28ee1438cd87d4bf35a7f6e
parentba86e7501391c1eef4efa8201f39abf127e1084b
Have readelf warn users if it is asked to decode a LLVM bitcode file or a golang object file.

* readelf.c (check_magic_number): New function.  Checks the magic
bytes at the start of a file.  If they are not the ELF format
magic values, then attempts to generate a helpful error message.
(process_file_header): Call check_magic_number.
binutils/ChangeLog
binutils/readelf.c