[PATCH] llvmGen: Align objects in the data section
authorStefan Schulze Frielinghaus <stefansf@linux.ibm.com>
Mon, 27 Nov 2023 11:34:47 +0000 (12:34 +0100)
committerIlias Tsitsimpis <iliastsi@debian.org>
Wed, 10 Apr 2024 11:24:01 +0000 (14:24 +0300)
commit5eab1f76b0a4967f8c31847918a5036e1a4435fe
tree788cdecf90126a615eae742d78cafde7a8cb4921
parentd43fba7f6d6ec5ef09bbf246c6a5a710a04029ce
[PATCH] llvmGen: Align objects in the data section

Objects in the data section may be referenced via tagged pointers.
Thus, align those objects to a 4- or 8-byte boundary for 32- or 64-bit
platforms, respectively.  Note, this may need to be reconsidered if
objects with a greater natural alignment requirement are emitted as e.g.
128-bit atomics.

Fixes #24163.

Gbp-Pq: Name dfe1c3540e4b519b62b862b5966dfec5cae9ece1.patch
compiler/GHC/CmmToLlvm/Data.hs