Action movie from 70s or 80s - I dont remember title

One of the first scene is fight on ranch. Other thing which I remember is scene in prison when warden order to main character to run on the desert and when he doesnt have any more power to run any more, warden gives him his socks.
I also remember that main character escaped from prison.