$ ls -l debian/libgl1-mesa-dri{-dbg,-dbgsym}/usr/lib/debug/usr/lib/dri-classic/r300* debian/libgl1-mesa-dri/usr/lib/dri-classic/r300_dri.so; objdump -s -j .gnu_debuglink debian/libgl1-mesa-dri/usr/lib/dri-classic/r300_dri.so|tail -1 = After dh_install = ls: cannot access debian/libgl1-mesa-dri-dbg/usr/lib/debug/usr/lib/dri-classic/r300*: No such file or directory ls: cannot access debian/libgl1-mesa-dri-dbgsym/usr/lib/debug/usr/lib/dri-classic/r300*: No such file or directory -rwxr-xr-x 1 tormod tormod 13935782 2010-04-21 20:51 debian/libgl1-mesa-dri/usr/lib/dri-classic/r300_dri.so = Inside first dh_strip (with --debug-package=) just after pkg_create_dbgsym has made ddebs = ls: cannot access debian/libgl1-mesa-dri-dbg/usr/lib/debug/usr/lib/dri-classic/r300*: No such file or directory -rwxr-xr-x 1 tormod tormod 11459918 2010-04-21 20:51 debian/libgl1-mesa-dri-dbgsym/usr/lib/debug/usr/lib/dri-classic/r300_dri.so -rwxr-xr-x 1 tormod tormod 13935782 2010-04-21 20:51 debian/libgl1-mesa-dri/usr/lib/dri-classic/r300_dri.so = first pkg_create_dbgsym done ls: cannot access debian/libgl1-mesa-dri-dbg/usr/lib/debug/usr/lib/dri-classic/r300*: No such file or directory -rwxr-xr-x 1 tormod tormod 11459918 2010-04-21 20:51 debian/libgl1-mesa-dri-dbgsym/usr/lib/debug/usr/lib/dri-classic/r300_dri.so -rwxr-xr-x 1 tormod tormod 13935782 2010-04-21 20:51 debian/libgl1-mesa-dri/usr/lib/dri-classic/r300_dri.so NOTE: Correctly, no debuglink has been made by pkg_create_dbgsym because of the --debug-package= flag = after the first dh_strip is done = ls: cannot access debian/libgl1-mesa-dri-dbgsym/usr/lib/debug/usr/lib/dri-classic/r300*: No such file or directory -rw-r--r-- 1 tormod tormod 11459918 2010-04-21 20:55 debian/libgl1-mesa-dri-dbg/usr/lib/debug/usr/lib/dri-classic/r300_dri.so -rwxr-xr-x 1 tormod tormod 2477552 2010-04-21 20:55 debian/libgl1-mesa-dri/usr/lib/dri-classic/r300_dri.so 0000 72333030 5f647269 2e736f00 e9fc716e r300_dri.so...qn NOTE: So here the real dh_strip has added the debuglink section (matching the -dbg package) = Inside second dh_strip (with -s) just after pkg_create_dbgsym has made ddebs = -rwxr-xr-x 1 tormod tormod 1684 2010-04-21 20:56 debian/libgl1-mesa-dri-dbgsym/usr/lib/debug/usr/lib/dri-classic/r300_dri.so -rw-r--r-- 1 tormod tormod 11459918 2010-04-21 20:55 debian/libgl1-mesa-dri-dbg/usr/lib/debug/usr/lib/dri-classic/r300_dri.so -rwxr-xr-x 1 tormod tormod 2477552 2010-04-21 20:56 debian/libgl1-mesa-dri/usr/lib/dri-classic/r300_dri.so 0000 72333030 5f647269 2e736f00 a6e0d456 r300_dri.so....V NOTE: pkg_create_dbgsym runs on the already stripped binary and produces an empty symbol file, overwriting the one made in the first dh_strip run. It also overwrites the debuglink (to point to the empty symbol file ) since this is running without the --debug-package= option. = After the second dh_strip, what will finally be packaged = ls: cannot access debian/libgl1-mesa-dri-dbgsym/usr/lib/debug/usr/lib/dri-classic/r300*: No such file or directory -rw-r--r-- 1 tormod tormod 11459918 2010-04-21 20:55 debian/libgl1-mesa-dri-dbg/usr/lib/debug/usr/lib/dri-classic/r300_dri.so -rwxr-xr-x 1 tormod tormod 2477552 2010-04-21 20:57 debian/libgl1-mesa-dri/usr/lib/dri-classic/r300_dri.so Contents of section .gnu_debuglink: 0000 72333030 5f647269 2e736f00 a6e0d456 r300_dri.so....V