[LLD][ELF][AArch64] .note.gnu.property sections should have alignment 8
authorPeter Smith <peter.smith@linaro.org>
Fri, 29 Nov 2019 18:44:21 +0000 (18:44 +0000)
committerPeter Smith <peter.smith@linaro.org>
Thu, 5 Dec 2019 10:11:31 +0000 (10:11 +0000)
commit784f57584fc3b582944d6786738738390e2b5f71
tree2e5ce591b46f886c93e70c4a49722bf98a82fd50
parent4b4ede440a2ad51b150cb913775eee76189aac38
[LLD][ELF][AArch64] .note.gnu.property sections should have alignment 8

The .note.gnu.property SHT_NOTE sections on AArch64 (a 64-bit target)
should have alignment 8 to more closely match the binutils implementation
where alignment is 4-bytes on 32-bit machines and 8-bytes on 64-bit
machines.

Previously LLD was using 4 for both 32-bit and 64-bit machines.

Differential Revision: https://reviews.llvm.org/D70962
lld/ELF/SyntheticSections.cpp
lld/test/ELF/gnu-property-align-32.s [new file with mode: 0644]
lld/test/ELF/gnu-property-align.s [new file with mode: 0644]
lld/test/ELF/pt-gnu-property.s