[llvm] [AArch64][ELF] Section alignment of 4 for AArch64 instruction (PR #114031)
Florin Popa via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 31 08:34:48 PDT 2024
================
@@ -202,6 +202,12 @@ class AArch64ELFStreamer : public MCELFStreamer {
LastEMS = EMS_None;
MCELFStreamer::changeSection(Section, Subsection);
+
+ // Section alignment of 4 to match GNU Assembler
+ if (Section->getAlign() < 4) {
----------------
popaflorin wrote:
I am checking now `Section->isText()` in the latest patchset which seems to get the correct executable section. In the test I have also included a `aw` section to prove that the alignment will remain unchanged at 1
https://github.com/llvm/llvm-project/pull/114031
More information about the llvm-commits
mailing list