aboutsummaryrefslogtreecommitdiff
path: root/gdb/python
diff options
context:
space:
mode:
authorMichael Matz <matz@suse.de>2024-10-15 18:47:15 +0200
committerMichael Matz <matz@suse.de>2024-10-17 16:41:37 +0200
commited3228de9b3335e5c97f738fc22d682f56d42316 (patch)
treec22f5c1428e6f7a2f44854faedeb483ba48eac76 /gdb/python
parent34f93a568c4a3b264025e36f099bc29e94929e2a (diff)
downloadbinutils-ed3228de9b3335e5c97f738fc22d682f56d42316.zip
binutils-ed3228de9b3335e5c97f738fc22d682f56d42316.tar.gz
binutils-ed3228de9b3335e5c97f738fc22d682f56d42316.tar.bz2
PR32260: Improve error handling on string merging
if the input sections are near the max supported size (4G) we might fail to enlarge the hash table. The error handling for this case didn't quite work. When this happens we can gracefully fall back to just not deduplicate this section (and continue with further mergable sections). We were mixing that with the case of not being able to even allocate a small structure (in which case we can as well error out completely), this disentables both cases. bfd/ PR ld/32260 * merge.c (sec_merge_maybe_resize): Check overflow in ultimate target type. (record_section): Return three-state, use new state when unable to enlarge hash table. (_bfd_merge_sections): Remove current section from merging consideration when hashtable can't be enlarged.
Diffstat (limited to 'gdb/python')
0 files changed, 0 insertions, 0 deletions