Shdr's are not necessarily size 2^n -- that's an accident of ELF64_Shdr's contents.
There is no reason to align to that boundary if they are.
This fixes an assert fail for ELF32 (which requires more patches)
Paths
| Differential D148666
[BOLT] Adjust Shdr alignment ClosedPublic Authored by urnathan on Apr 18 2023, 3:26 PM.
Details
Summary Shdr's are not necessarily size 2^n -- that's an accident of ELF64_Shdr's contents. This fixes an assert fail for ELF32 (which requires more patches)
Diff Detail Event TimelineThis revision is now accepted and ready to land.Apr 18 2023, 5:56 PM Closed by commit rGf2f041192418: [BOLT] Adjust Shdr alignment (authored by urnathan). · Explain WhyApr 19 2023, 12:52 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 514758 bolt/lib/Rewrite/RewriteInstance.cpp
|