[all-commits] [llvm/llvm-project] 301fe4: [AArch64][ELF] Section alignment of 4 for AArch64 ...

Florin Popa via All-commits all-commits at lists.llvm.org
Mon Feb 24 01:17:27 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 301fe4797191e528d23dcaf52b8e47649d2bf555
      https://github.com/llvm/llvm-project/commit/301fe4797191e528d23dcaf52b8e47649d2bf555
  Author: Florin Popa <popa.florin at gmail.com>
  Date:   2025-02-24 (Mon, 24 Feb 2025)

  Changed paths:
    M lld/test/ELF/aarch64-relocs.s
    M llvm/lib/Target/AArch64/MCTargetDesc/AArch64ELFStreamer.cpp
    A llvm/test/MC/AArch64/align-code.s

  Log Message:
  -----------
  [AArch64][ELF] Section alignment of 4 for AArch64 instruction (#114031)

The integrated assembler sets a minimum alignment for the .text section
of 4. However user defined sections get an alignment of 1. Unlike the
GNU assembler which raises the section alignment to 4 if an AArch64
instruction is used, the integrated assembler leaves the alignment at 1

---------

Co-authored-by: Florin Popa <florin.popa at arm.com>



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list