---
name: "dh_package_notes"
section: "1"
platform: "linux"
package: "dh-package-notes"
version: "0.15"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/dh_package_notes"
---

# dh\_package\_notes(1)

Add package metadata to ELF header

## NAME

dh\_package\_notes - Add package metadata to ELF header

## SYNOPSIS

**dh\_package\_notes**

## DESCRIPTION

**dh\_package\_notes** provides a linker specs file to include package metadata in ELF binaries built by packages.

The package metadata specification for ELF binaries can be found at \<https://systemd.io/ELF\_PACKAGE\_METADATA/\>.

**dh\_package\_notes** provides a linker specs file at **/usr/share/debhelper/dh\_package\_notes/debian-package-notes.specs** which can be used by including **/usr/share/debhelper/dh\_package\_notes/debian-package-notes.mk** at the dop of **debian/rules**. This will export the right environment variables that will result in a package note ELF section being added to all packaged ELF files, with the package type set to **deb**, the package name and version set to the source package name and version respectively, the OS set to **Debian** and debuginfod URL set to **https://debuginfod.debian.net**. On Ubuntu, the OS will be set to **Ubuntu** and debuginfod URL will be set to **https://debuginfod.ubuntu.com**.

Note that it is not sufficient to build-depend on this package, the **include** must be used at the top of **debian/rules** for this to be enabled.

## SEE ALSO

[**debhelper**(7)](/debhelper/7.md)

## AUTHOR

Luca Boccassi \<bluca@debian.org\>
