diff options
author | Alan Modra <amodra@gmail.com> | 2024-08-25 15:20:21 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2024-08-26 09:40:55 +0930 |
commit | db856d41004301b3a56438efd957ef5cabb91530 (patch) | |
tree | 70068307e2aeaa0a18ed27f9c1ee792c9bb42feb /gdb/btrace.c | |
parent | d188dec6ee4073085c53054592c1e099d78d7a87 (diff) | |
download | gdb-db856d41004301b3a56438efd957ef5cabb91530.zip gdb-db856d41004301b3a56438efd957ef5cabb91530.tar.gz gdb-db856d41004301b3a56438efd957ef5cabb91530.tar.bz2 |
PR32109, aborting at bfd/bfd.c:1236 in int _bfd_doprnt
Since bfd_section for .strtab isn't set, print the section index
instead. Also, don't return NULL on this error as that results in
multiple mmap/read of the string table. (We could return NULL if we
arranged to set sh_size zero first, but just what we do with fuzzed
object files is of no concern, and terminating the table might make a
faulty object file usable.)
PR 32109
* elf.c (bfd_elf_get_str_section): Remove outdated comment, and
tweak shstrtabsize test to suit. Don't use string tab bfd_section
in error message, use index instead. Don't return NULL on
unterminated string section, terminate it.
(_bfd_elf_get_dynamic_symbols): Similarly terminate string table
section.
Diffstat (limited to 'gdb/btrace.c')
0 files changed, 0 insertions, 0 deletions