UKI sections are not properly aligned
mkinitcpio master correctly adds PE sections with a dynamically calculated offsets, but it fails to align the offsets to the section alignment header field. Although, EFI loaders are lenient about this, it is still in violation of the PE format and future EFI firmware might reject such images.
Ultimately, it would be better to use systemd-ukify as it does all the things and more, reducing duplication of effort and increasing support for more arches in the process.
Edited by nl6720