Current theory is heavier elements than iron are produced at the instant before the formation of a black hole in a supermassive star. Most of the heavier elements fall into the black hole, with a small percentage ejected via the relativistic jet that forms inside the core and bursts out of the out layers of the star's poles and out into space, forming a hypernova.
I would not want to be the one to observe it happening to prove the theory!