Recent

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

trev

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2020
  • 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]

PascalDragon

  • Hero Member
  • *****
  • Posts: 5446
  • 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