Formation of elements in the Sun other than helium I just learned that the Fraunhofer lines of the Sun's spectrum indicate that the Sun contains various elements other than just hydrogen and helium (for example, Na and Fe) but don't the Sun's p-p chain reactions only involve hydrogen and helium? So where do these other elements came from?
The Sun is currently turning hydrogen into helium. There are no other nuclear reactions taking place at any significant rate in the Sun. The Sun will not start to make heavier elements until it reaches the tip of the red giant branch in about 7 billion years time.
The elements heavier than helium that are present in the Sun were almost all made inside other stars. These stars lived and died before the Sun was born 4.5 billion years ago. The nucleosynthesis products from these previous stars were recycled in stellar winds, supernovae, kilonovae and novae, and then mixed into the turbulent interstellar medium.