docs: def getSoname(filename):
      """
      Return the soname of a library.
      """
      cmd = ["objdump", "-p", "-j", ".dynamic", filename]
      m = re.search(r'\s+SONAME\s+([^\s]+)', compat.exec_command(*cmd))
      if m:
          return m.group(1)