[PATCH] Bug 12843: put ELF reloc section against section with template function instantiation in the same COMDAT group

Tim Northover t.p.northover at gmail.com
Sun Jul 7 11:20:40 PDT 2013


Hi Igor,

> http://llvm.org/bugs/show_bug.cgi?id=12843

Hmm. As far as I can see the ELF specification is unclear on the
correct behaviour here. We currently seem to match GCC behaviour,
which does not put the relocation sections into the COMDAT groups
explicitly.

Much as I prefer these things to be explicit, it almost seems more
consistent with the rest of ELF that relocation sections aren't
included in COMDAT. Otherwise, shouldn't we be creating group sections
for every .section/.rel.section pair? It looks like they have the same
semantics.

Cheers.

Tim.



More information about the llvm-commits mailing list