Previously LLD would fail for case when there are multiple comdats and -r.
That happened because it merged all ".group" (SHT_GROUP) sections into single
output, producing broken result. Such sections may have similar name, alignment and flags
and other properties. I think all we need to do for fix is to produce separate output
section for each such input one.
Then this explanation doesn't capture why we are doing this.