aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2022-08-22 11:15:40 +0100
committerNick Clifton <nickc@redhat.com>2022-08-22 11:15:40 +0100
commit521f726815eb426660f6b9ecc005fbab6c1b00ea (patch)
treedbb189b697b1f865d28ee1438cd87d4bf35a7f6e /gdb
parentba86e7501391c1eef4efa8201f39abf127e1084b (diff)
downloadbinutils-521f726815eb426660f6b9ecc005fbab6c1b00ea.zip
binutils-521f726815eb426660f6b9ecc005fbab6c1b00ea.tar.gz
binutils-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 'gdb')
0 files changed, 0 insertions, 0 deletions