mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-07 17:17:44 +03:00
Merge pull request #21960 from medhefgo/boot-gap
boot: Use objcopy to align sections
This commit is contained in:
commit
019c84938d
6
.github/workflows/build_test.sh
vendored
6
.github/workflows/build_test.sh
vendored
@ -132,6 +132,12 @@ for args in "${ARGS[@]}"; do
|
||||
fatal "'meson compile' failed with $args"
|
||||
fi
|
||||
|
||||
for loader in build/src/boot/efi/*.efi; do
|
||||
if sbverify --list "$loader" |& grep -q "gap in section table"; then
|
||||
fatal "$loader: Gaps found in section table"
|
||||
fi
|
||||
done
|
||||
|
||||
git clean -dxf
|
||||
|
||||
success "Build with $args passed in $SECONDS seconds"
|
||||
|
@ -405,6 +405,7 @@ foreach tuple : [['systemd_boot.so', systemd_boot_efi_name, systemd_boot_objects
|
||||
'-j', '.sdata',
|
||||
'-j', '.sdmagic',
|
||||
'-j', '.text',
|
||||
'--section-alignment=512',
|
||||
efi_format,
|
||||
'@INPUT@', '@OUTPUT@'],
|
||||
install : true,
|
||||
|
@ -30,7 +30,7 @@ SecureBootMode secure_boot_mode(void) {
|
||||
}
|
||||
|
||||
#ifdef SBAT_DISTRO
|
||||
static const char sbat[] _used_ _section_ (".sbat") _align_ (512) =
|
||||
static const char sbat[] _used_ _section_(".sbat") =
|
||||
"sbat,1,SBAT Version,sbat,1,https://github.com/rhboot/shim/blob/main/SBAT.md\n"
|
||||
SBAT_PROJECT ",1,The systemd Developers," SBAT_PROJECT "," PROJECT_VERSION "," PROJECT_URL "\n"
|
||||
SBAT_PROJECT "." SBAT_DISTRO "," STRINGIFY(SBAT_DISTRO_GENERATION) "," SBAT_DISTRO_SUMMARY "," SBAT_DISTRO_PKGNAME "," SBAT_DISTRO_VERSION "," SBAT_DISTRO_URL "\n";
|
||||
|
Loading…
Reference in New Issue
Block a user