Ceratonia siliqua, commonly known as the carob tree. Maybe it clung to life by eating rocks for years or rock acted as a generous host.