[PATCH] gdb: do not add const sections to the section map
Tom Tromey
tromey@adacore.com
Thu May 19 15:10:03 GMT 2022
>>>>> Ilya Leoshkevich <iii@linux.ibm.com> writes:
> From: Ulrich Weigand <ulrich.weigand@de.ibm.com>
> build_objfile_section_table () creates four synthetic sections, which
> significantly slow down section map sorting. This is especially
> noticeable when debugging JITs that report a lot of objfiles. Since
> these sections are not useful for find_pc_section (), do not add them
> to the section map.
How does it slow down the sorting?
It seems a little strange at least to drop the *ABS* section, since IIUC
that's for symbols that specify some kind of absolute address. Couldn't
these matter for lookup purposes? It's probable I don't really know
what's going on here...
I wonder if we can drop all support for all these sections from gdb.
Tom
More information about the Binutils
mailing list