These rock stacks are volcanic. The beginnings of Etna, they were pushed up from the sea floor. So, contrary to the story from Homer’s Odyssey, they were not rocks thrown after Odysseus and his men by the cyclops.
I recently finished listening to the Emily Wilson translation of the Odyssey read by Claire Danes. It was captivating. I highly recommend it. Especially the chapter detailing this misadventure.