boot: Use objcopy to align sections
authorJan Janssen <medhefgo@web.de>
Sat, 1 Jan 2022 15:37:27 +0000 (16:37 +0100)
committerJan Janssen <medhefgo@web.de>
Sun, 2 Jan 2022 18:58:56 +0000 (19:58 +0100)
commit75747c8a399967fa5d815a8f70f724436d035652
treea6dbe1fa47256670d8ee140a0d21a7581ed4d54a
parent3c80c7bacf6d2a3add8f48b0d094f40c29079a14
boot: Use objcopy to align sections

Not aligning these can create gaps in the section table. Some
firmware does not handle this nicely resulting in secure boot
signature fails.
Using objcopy ensures that any new sections in the future will be
properly aligned.

Fixes: #21956
src/boot/efi/meson.build
src/boot/efi/secure-boot.c