• Cortex A code / function alignment

    Hi !

    I am writing assembly code for some ARMv7a and ARMv8a CPU. I know that code has to be 4 bytes aligned, but I saw in several places (uboot/linux) the ".align 4" GCC directive, which will align to 2**4 = 16 bytes.

    When writing code that will…

  • ELF entry point in thumb mode (armv7/aarch32)

    Hi !

    We are writing an OS targeting 32 bits ARM platform, where binaries can be compiled in ARM or in Thumb mode.

    At the moment, to execute a new process, I load the info from an ELF, set lr_usr to the entry point address, set spsr_usr to a default value…