fix(dso): do not eagerly resolve symlinks

This change contains three improvements:

- we use a separate root node, so that it is easier to debug
  what is going on
- we now are able to print the DOT graph of ELF binaries in
  DsoCleaner
- we do not eagerly resolve symlinks, which produced completely
  incorrect results before
This commit is contained in:
Matteo Settenvini 2025-01-30 15:54:57 +01:00
parent a05dd7084d
commit 7ec6467b3b
Signed by: matteo
GPG key ID: 1C1B12600D81DE05
5 changed files with 130 additions and 52 deletions

View file

@ -27,6 +27,11 @@ pub struct Args {
#[arg(long)]
pub blocklist: Option<PathBuf>,
/// An optional path to save the file graph of the DSO cleaner
/// in GraphViz format. Useful for debugging.
#[arg(long)]
pub output_dotfile: Option<PathBuf>,
/// The location of the sysroot to clean up
pub sysroot_location: PathBuf,
}