RFC: LD: Changing the size of the delta used when growing merge offset maps
Nick Clifton
nickc@redhat.com
Wed Mar 18 11:05:45 GMT 2026
Hi H.J.
>> Running the linker under sysprof shows that the append_offsetmap()
>> function in merge.c is responsible for a large amount of the memory
>> allocated during a link, and a lot of those allocations are calls to
>> bfd_realloc().
> Is bfd_realloc really the bottleneck?
Not really no. It does take a small amount of time, of course, especially
if a new memory region needs to be used. But in the grand scheme of things
it is not actually a significant time hog.
Cheers
Nick
More information about the Binutils
mailing list