]> git.itanic.dy.fi Git - linux-stable/commit
kbuild: deb-pkg: use build ID instead of debug link for dbg package
authorMasahiro Yamada <masahiroy@kernel.org>
Tue, 26 Dec 2023 14:33:59 +0000 (23:33 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Fri, 5 Jan 2024 10:35:38 +0000 (19:35 +0900)
commit16c36f8864e354952eeeb8449034d63d372f621d
tree6d38699cbe4137b178711d7e2b91a8a34c9dfa87
parent5e73758b43c3defba2578df6d3a53e942fa6b41e
kbuild: deb-pkg: use build ID instead of debug link for dbg package

There are two ways of managing separate debug info files:

 [1] The executable contains the .gnu_debuglink section, which specifies
     the name and the CRC of the separate debug info file.

 [2] The executable contains a build ID, and the corresponding debug info
     file is placed in the .build-id directory.

We could do both, but the former, which 'make deb-pkg' currently does,
results in complicated installation steps because we need to manually
strip the debug sections, create debug links, and re-sign the modules.
Besides, it is not working with module compression.

This commit abandons the approach [1], and instead opts for [2].

Debian kernel commit de26137e2a9f ("Drop not needed extra step to add
debug links") also stopped adding debug links.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
scripts/package/builddeb