In the context of the origin of life, rocks are considered mainly for catalysis and adsorption-desorption processes. Here it is shown how some rocks evolve in energy and might induce synthesis of molecules of biological interest. Radioactive rocks are a source of thermal energy and water radiolysis producing molecular hydrogen, H2. Mafic and ultramafic rocks evolve in water and dissolved carbon dioxide releasing thermal energy and H2. Peridotites and basalts contain ferromagnesian minerals which transform through exothermic reactions with the generation of heat. These reactions might be triggered by any heating process such as radioactive decay, hydrothermal and subduction zones or post-shock of meteorite impacts. H2 might then be generated from endothermic hydrolyses of the ferromagnesian minerals olivine and pyroxene. In both cases of mafic and radioactive rocks, production of CO might occur through high temperature hydrogenation of CO2. CO, instead of CO2, was proven to be necessary in experiments synthesizing biological-type macromolecules with a gaseous mixture of CO, N2 and H2O. In the geological context, N2 is present in the environment, and the activation source might arise from cosmic radiation and/or radionuclides. Ferromagnesian and radioactive rocks might consequently be a starting point of an hydrothermal chemical evolution towards the abiotic formation of biological molecules. The two usually separate worlds of rocks and life are shown to be connected through molecular and thermodynamic chemical evolution. This concept has been proposed earlier by the author without thermodynamic details. This concept leads to signatures of prebiotic chemistry such as radionuclides and also iron and magnesium carbonates associated with serpentine and/or talc, which were discussed at the 2014 European Astrobiology Network Association conference on Signatures of Life.