]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
ci: Test efi binaries for section table gaps 21960/head
authorJan Janssen <medhefgo@web.de>
Sun, 2 Jan 2022 19:05:58 +0000 (20:05 +0100)
committerJan Janssen <medhefgo@web.de>
Sun, 2 Jan 2022 19:05:58 +0000 (20:05 +0100)
.github/workflows/build_test.sh

index 78bc35a43b64bac188fe3f1e6631e0bcc24798c1..cd5fcac550931c8b7e07b44bc809e5b94db64177 100755 (executable)
@@ -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"