diff options
author | Nick Clifton <nickc@redhat.com> | 2022-08-22 11:15:40 +0100 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2022-08-22 11:15:40 +0100 |
commit | 521f726815eb426660f6b9ecc005fbab6c1b00ea (patch) | |
tree | dbb189b697b1f865d28ee1438cd87d4bf35a7f6e /binutils/ChangeLog | |
parent | ba86e7501391c1eef4efa8201f39abf127e1084b (diff) | |
download | gdb-521f726815eb426660f6b9ecc005fbab6c1b00ea.zip gdb-521f726815eb426660f6b9ecc005fbab6c1b00ea.tar.gz gdb-521f726815eb426660f6b9ecc005fbab6c1b00ea.tar.bz2 |
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.
Diffstat (limited to 'binutils/ChangeLog')
-rw-r--r-- | binutils/ChangeLog | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog index e911f44..e01db7d 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,10 @@ +2022-08-22 Nick Clifton <nickc@redhat.com> + + * 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. + 2022-08-09 Nick Clifton <nickc@redhat.com> PR 29457 |