Previously sh_entsize field was not set for MergeOutputSection.
Patch fixes that.
That should resolve the https://llvm.org/bugs/show_bug.cgi?id=26975
Differential D18248
[ELF] - Set the sh_entsize for mergable sections grimar on Mar 17 2016, 10:31 AM. Authored by
Details Previously sh_entsize field was not set for MergeOutputSection. That should resolve the https://llvm.org/bugs/show_bug.cgi?id=26975
Diff Detail
Event Timeline
Comment Actions Perhaps sections with different sh_entsize should not be mergable?
Comment Actions Ah, right. I thought that we have a list of input sections, but we actually |
Setting a header value from addSection would be a bit confusing because it runs multiple times. I'd do that in finalize().