dyld refuses to run initializers if this section is not aligned.
Fixes https://bugs.chromium.org/p/chromium/issues/detail?id=1383240
Paths
| Differential D137803
[lld-macho] Set 4-byte alignment for `__init_offsets` ClosedPublic Authored by BertalanD on Nov 10 2022, 1:50 PM.
Details
Summary dyld refuses to run initializers if this section is not aligned. Fixes https://bugs.chromium.org/p/chromium/issues/detail?id=1383240
Diff Detail
Event TimelineHerald added projects: Restricted Project, Restricted Project. · View Herald TranscriptNov 10 2022, 1:50 PM This revision is now accepted and ready to land.Nov 10 2022, 1:53 PM Closed by commit rG948fc66f5e86: [lld-macho] Set 4-byte alignment for `__init_offsets` (authored by BertalanD). · Explain WhyNov 10 2022, 2:33 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 474612 lld/MachO/SyntheticSections.cpp
lld/test/MachO/init-offsets.s
|