Armv8a Alignment Exception during snprintf execution

Hello,

I am currently running into an Alignment exception on the Armv8a.

The system is running on the EL2 exception level, the MMU is disabled, alignment checks are disabled, stack pointer alignment checks are also disabled.

During the execution of the snprintf function from the standard library that shipped with the compiler I am getting an exception while trying to load two 128bit registers from an unaligned memory region. The stack pointer should be properly aligned upon entry in the function: 0x80910F100.

Can you tell me how I can enforce stronger alignment requirements, or what else might be the root cause of my issue?


I am using the following tools:

Compiler: arm-gnu-toolchain-13.2.Rel1-x86_64-aarch64-none-elf, linked with libnosys.a

Compiler Options:

-Wimplicit
-Wall
-Wunused
-Wunknown-pragmas
-ffunction-sections
-fdata-sections
-c
-mcpu=cortex-a72+fp+simd
-g
-mabi=lp64
-mcmodel=large
-mstrict-align
-std=gnu99
-fms-extensions
-Wno-address-of-packed-member
-Wno-stringop-truncation
-Werror
-s

Thank you in advance.

Parents Reply Children
No data