Rock and dust makes the terrestrial planets, their moons, asteroids and all other objects in the Solar System. The gas giant planets also do have rocky or metallic centres. This is known from the data-gathering by satellites. This rocky material cannot come from the Sun, because the Sun is all hydrogen plus some helium.