One thing to be aware of:
According to the S32G Reference Manual, the APP code header must be glued to the application code. This is the reason why .code is always placed 0x40 bytes after .app_code. Therefore, BootROM will assume that everything after the APP header represents code that has to be loaded in SRAM and booted according to other fields part of the IVT. Here is a snippet from the Boot chapter:
