https://sourceware.org/bugzilla/show_bug.cgi?id=31009
--- Comment #7 from Jonny Weir ---
I made the following change:
diff --git a/bfd/merge.c b/bfd/merge.c
index f21154dcd45..3b4ccfb86df 100644
--- a/bfd/merge.c
+++ b/bfd/merge.c
@@ -175,26 +175,43 @@ sec_merge_maybe_resize (struct sec_merge_ha
https://sourceware.org/bugzilla/show_bug.cgi?id=31009
--- Comment #6 from Michael Matz ---
(In reply to Jonny Weir from comment #5)
> Ignore that last message, it is misleading, this is a more accurate
> representation of what is happening with the values:
Ah, yes. I was suspecting already that
https://sourceware.org/bugzilla/show_bug.cgi?id=31009
--- Comment #5 from Jonny Weir ---
Ignore that last message, it is misleading, this is a more accurate
representation of what is happening with the values:
bfdtab->count + 1 = 1 | table->nbuckets = 8192 | table->nbuckets * 2 / 3 = 5461
bfdtab
https://sourceware.org/bugzilla/show_bug.cgi?id=31009
--- Comment #4 from Jonny Weir ---
I was able to add some logging to get the values out and it seems that things
are overflowing at some point. Some example output:
bfdtab->count + 1 = 1 | table->nbuckets = 5461
bfdtab->count + 1 = 2 | tab
https://sourceware.org/bugzilla/show_bug.cgi?id=31009
--- Comment #3 from Jonny Weir ---
Hi Nick,
(In reply to Nick Clifton from comment #1)
> Hi Jonny,
>
> (In reply to Jonny Weir from comment #0)
>
> > linking stage when -O3 is used (-O2 builds and links correctly). To be
> > clear, the only