On Wed, Apr 27, 2022 at 02:23:00PM +0200, Jakub Jelinek wrote:
> On Wed, Apr 27, 2022 at 11:59:49AM +0200, Ilya Leoshkevich wrote:
> > I get a .LASANPC reloc there in the first place because of
> > https://patchwork.ozlabs.org/project/gcc/patch/20190702085154.26981-1-...@linux.ibm.com/
> > but of course it may happen for other reasons as well.
> 
> In that case I don't see any benefit to put that into a mergeable section.
> Why does that happen?

Because, when a mergeable section doesn't contain any relocations, I don't
see any point in making it comdat.  Because mergeable sections themselves
are garbage collected, if some constant isn't referenced at all, it isn't
emitted, or if referenced, multiple copies of the constant are merged (or
for mergeable strings even string tail merging is performed).

        Jakub

Reply via email to