The Thermodynamics of Stressed Solids