[llvm] [AArch64][ELF] Section alignment of 4 for AArch64 instruction (PR #114031)

Jack Styles via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 31 06:34:27 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) {
----------------
Stylie777 wrote:

Yes - this should be updated to be like before @popaflorin where you were checking for if AArch64 instructions were used.

https://github.com/llvm/llvm-project/pull/114031


More information about the llvm-commits mailing list