It probably would just absorb the chakra out of the rock or perhaps just absorb the rock as it is described as inexhaustible vortexThe tree isnt made of chakra, its being manipulated by chakra same with earth techniques.
Id like to see preta path absorb this
You must be registered for see images
We can argue all day about this bro but if its Ninjutsu it will be absorbed by preta path thats why Rinnegan users dont lose to fodder