Formation of South America in the rocks