This was reported against Fedora: https://bugzilla.redhat.com/show_bug.cgi?id=1948615 The DWARF (comp_dir attribute) contains the realpath of the working directory. Which means we also should resolve any symlinks in the RPM_ROOT_DIR before passing it onto debugedit,