Recent

Author Topic: warning: arm64 function not 4-byte aligned  (Read 831 times)

trev

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1989
  • Former Delphi 1-7, 10.2 user
warning: arm64 function not 4-byte aligned
« on: May 04, 2022, 12:53:58 pm »
Quote
Compile Project, Target: /Users/trev/Documents/laz_dock_icon_badge/project1: Success, Errors: 2
Error: ld: warning: arm64 function not 4-byte aligned: _main from /Users/trev/Documents/laz_dock_icon_badge/lib/aarch64-darwin/project1.o
Error: ld: warning: arm64 function not 4-byte aligned: _PASCALMAIN from /Users/trev/Documents/laz_dock_icon_badge/lib/aarch64-darwin/project1.o

Should I be worried?

[Lazarus main and FPC main from shortly before this post]
Lazarus 2.3, FPC 3.3.1 macOS 12.3.1 x86_64 Xcode 13.4
Lazarus 2.3, FPC 3.3.1 macOS 12.3.1 aarch64 Xcode 13.4

PascalDragon

  • Hero Member
  • *****
  • Posts: 4573
  • Compiler Developer
Re: warning: arm64 function not 4-byte aligned
« Reply #1 on: May 04, 2022, 01:19:47 pm »
Considering that ARM64 instructions are 4 Byte in length it is indeed rather strange if the entry point isn't 4 Byte aligned :o

 

TinyPortal © 2005-2018