[PATCH] bfd/elf: Don't read non-existing secondary relocs
Michael Matz
matz@suse.de
Mon Jun 7 14:16:25 GMT 2021
Hello,
On Mon, 7 Jun 2021, Michael Matz wrote:
> Without this we unconditionally try to slurp in secondary
> relocs for each input section, leading to quadratic behaviour
> even for strip(1). On write-out we already used a flag to avoid
> this.
>
> So track existence of secondary relocs on read-in as well and
> only slurp in when needed. This still doesn't implement a proper
> list of secondary reloc sections, and still would exhibit quadratic
> behaviour if most input sections have a secondary reloc section.
> But at least on normal input this avoid
Hmm, consider this text to be amended thus: "[avoid]s any slowdown from
trying to handle secondary relocation sections."
Ciao,
Michael.
More information about the Binutils
mailing list