Comment 4 for bug 1840704

Revision history for this message
Mauricio Faria de Oliveira (mfo) wrote :

Test Build 4) All debug symbols disabled

goal: show no zfs debug symbol activity happens either (along w/ other debug symbol stuff)

- test packaging
- nothing built with debug symbols
- no debug package present
- no .gnu_debuglink section at all
- (no regressions)

Test packaging, debug symbols disabled at all (skipdbg=true).

The dkms-build script doesn't do any debug symbol work at all.

 II: dkms-build installing zfs into /home/ubuntu/dbgsym/unstable/debian/linux-modules-5.3.0-8-generic/lib/modules/5.3.0-8-generic/kernel/zfs
 signing zavl.ko
 signing znvpair.ko
 signing zunicode.ko
 signing zcommon.ko
 signing zfs.ko
 signing icp.ko
 signing zlua.ko
 signing spl.ko
 II: dkms-build build zfs complete

No debug sections are present in ZFS modules (as expected):

 $ objdump -h deb-modules/lib/modules/5.3.0-8-generic/kernel/zfs/zfs.ko | grep debug
 $

And the check for modules without debug symbols is not exercised (as expected):

 $ grep WARNING build.log
 $

$ find deb-modules/ -name '*.ko' | wc -l
1000

$ find deb-modules/ -name '*.ko' | while read ko; do objdump -h -j .gnu_debuglink $ko >/dev/null 2>&1 || echo "Module without debug link '$ko'"; done | wc -l
1000

$ find deb-modules-extra/ -name '*.ko' | wc -l
4508

$ find deb-modules-extra/ -name '*.ko' | while read ko; do objdump -h -j .gnu_debuglink $ko >/dev/null 2>&1 || echo "Module without debug link '$ko'"; done | wc -l
4508