diff options
| author | Alan Modra <amodra@gmail.com> | 2025-11-24 18:46:35 +1030 |
|---|---|---|
| committer | Alan Modra <amodra@gmail.com> | 2025-11-25 07:50:17 +1030 |
| commit | 4e397ea9446b3dca3cbc85b6c0e0158042548f19 (patch) | |
| tree | 930f4d30926ec51aed8d33e9741f932374be7f48 /gdb/ppc-linux-nat.c | |
| parent | a6feabfb8f9aa31107f162dbd47c4ec7201cf625 (diff) | |
| download | gdb-4e397ea9446b3dca3cbc85b6c0e0158042548f19.zip gdb-4e397ea9446b3dca3cbc85b6c0e0158042548f19.tar.gz gdb-4e397ea9446b3dca3cbc85b6c0e0158042548f19.tar.bz2 | |
PR 33473 SEGV in _bfd_elf_gc_mark_debug_special_section_group
The code that faulted made the assumption that a group section always
had at least one valid member. Fix that assumption. Also fail if all
entries in a SHT_GROUP section are invalid. (An empty group will not
result in a call to process_sht_group_entries.)
PR 33473
* elflink.x (_bfd_elf_gc_mark_debug_special_section_group): Don't
segfault on empty group.
* elf.c (process_sht_group_entries): Return false if all
entries are invalid.
Diffstat (limited to 'gdb/ppc-linux-nat.c')
0 files changed, 0 insertions, 0 deletions
