Thermodynamics of Stressed Solids