When these are accessed with load/store instructions on ARM64, it becomes strictly necessary to have them properly aligned.
This fixes PR39228.
This is, IMO, a good candidate for backporting to the 7.0.1 branch.
Differential D53128
[LLD] [COFF] Set proper pointer size alignment for LocalImportChunk mstorsjo on Oct 11 2018, 12:45 AM. Authored by
Details
When these are accessed with load/store instructions on ARM64, it becomes strictly necessary to have them properly aligned. This fixes PR39228. This is, IMO, a good candidate for backporting to the 7.0.1 branch.
Diff Detail Event TimelineComment Actions LGTM
|
I'd write Alignment = Config->Is64 ? 8 : 4; instead of getSize() because it can be understood without reading getSize(). (I wondered whether or not getSize() returns a large value such as 16 when I read this code for the first time.)