| commit | 59ba00f21f7d48780e92a9fb66ed4abbedc3bd28 | [log] [tgz] |
|---|---|---|
| author | Alan Modra <amodra@gmail.com> | Sun Jan 26 13:12:45 2025 +1030 |
| committer | Alan Modra <amodra@gmail.com> | Sun Jan 26 15:03:58 2025 +1030 |
| tree | b955d694ca2f6ea52ce7264746b1c707a1782515 | |
| parent | fd45211245d0f1027a0c3ab606e3253eda779e68 [diff] |
loongson buffer overflow bfd_elfNN_loongarch_set_data_segment_info can be called from the target after_allocation function with a non-ELF hash table. This is seen in the ld-elf pr21884 testcase. Fix the problem by first checking the hash table type before writing to a loongarch_elf_hash_table field.