Package: opensbi
Version: 1.5-1
Severity: normal

Ubuntu started to add a .note.package section to ELF binaries. In the OpenSBI package debian/rules only strips the .note section but not the .note.package section. This leads to fw_dynamic.bin being unusable (LP: #2080244).

We need a change like:

diff --git a/debian/rules b/debian/rules
index d9562be..2a5a7a5 100755
--- a/debian/rules
+++ b/debian/rules
@@ -19,7 +19,7 @@ override_dh_auto_build:
                PLATFORM=generic ; \
        for elffile in build/platform/generic/firmware/fw_*.elf ; do \
                riscv64-linux-gnu-strip --remove-section=.comment \
-                       --remove-section=.note \
+                       --remove-section=.note* \
                        $${elffile} ; \
        done

Best regards

Heinrich

Reply via email to