I can see Rock/Stone Giants eating raw earth or even precious metals, as their appearance is decidedly "Earthy".
http://www.d20srd.org/srd/monsters/giant.htm#stoneGiant
For Hill Giants, though, I prefer the old fashioned cannibal method.
Like the Morlocks from "The Time Machine", they raid...