[LLD] [COFF] Fix alignment of thunks for ARM/ARM64
authorMartin Storsjö <martin@martin.st>
Wed, 8 Apr 2020 21:42:50 +0000 (00:42 +0300)
committerMartin Storsjö <martin@martin.st>
Mon, 13 Apr 2020 20:27:15 +0000 (23:27 +0300)
commit12c9e2f1110a4fc73562214cf5dd0194b31e87cf
treed12a71e5d7d3fdd2e42721979ef02ddcdb860c27
parent2a99e700e0f337c34c2d9d1cb5e4dc1d312fa248
[LLD] [COFF] Fix alignment of thunks for ARM/ARM64

The alignment of ARM64 range extension thunks was fixed in
7c816492197a, but ARM range extension thunks, and import
and delay import thunks also need aligning (like all code on ARM
platforms).

I'm adding a test for alignment of ARM64 import thunks - not
specifically adding tests for misalignment of all of them though.

Differential Revision: https://reviews.llvm.org/D77796
lld/COFF/Chunks.h
lld/COFF/DLL.cpp
lld/test/COFF/arm64-import2.test