[bin] complete the first version of get_preserved_libs