How is ESPP shares taxed if it's invested/exchanged into an exchange fund?

I have some good amounts of ESPP shares from a company. I know the tax consequences to sell them, and I intend to exchange these shares into an Exchange Fund. Anyone knows how is the initial discount (bargain element) received on the ESPP shares reported or tracked upon exchange into an exchange fund?