Libosuction is a tool for minification of shared libraries and executables in the ELF format in closed-world setups. It works in phases (full-system rebuilds), augmenting the build process with necessary analyses and/or transformations.
Libosuction does not depend on any particular build system. However, the source tree of the project does include the tooling necessary for using libosuction on packages cross-compiled in OBS environment.
Design documentation and the user guide can be found in the txt/ subdirectory.
Also, some academic papers covering the design of libosuction have been published: