Hi, There are a few patches around for this bug. I have tried going a different direction, where dh_strip and dh_shlibdeps improves its detection of ELF binaries. Assuming it is viable, I prefer it as it means less work for maintainers (notably, no manual "--add-shlib" arguments).
* If you have time to spare, please consider testing this branch [bug-35733-elf-detection] Please note that the changes *only* apply to compat 11 (by design). This is to avoid complications caused by existing packages relying on the current behaviour. For testing, please remember to bump the compat in the package (or using "export DH_COMPAT=11"). Thanks, ~Niels [bug-35733-elf-detection]: https://anonscm.debian.org/git/debhelper/debhelper.git/log/?h=bug-35733-elf-detection PS: dh_fixperms is not covered by this patch. With -fPIE being the default, the vast majority of all binaries now show up as "shared object" making it harder and more expensive to figure out whether or not the file should be executable or not. Notably, dh_strip relies entirely on the permission bit to get this right (and have done so for years) Accordingly, I do not plan on extending this work to cover dh_strip.

