“Liberty Valance” was written by the great writing team of Burt Bacharach and Hal David...but never used in the film.
One of their first chart hits was The Blob by the Five Blobs (1958)