I don't particularly agree with the idea that handsomely-paid individuals are necessarily rewarded for their skill and effort (if society rewarded people based on hard work and nothing else, it would look very different). Success tends to select for people who either have personal connections, early life advantages, know how to play politics or (more commonly) more than one of the above.
That being said, it's hard to see what publicising executive pay achieves other than allowing more in-depth research into earnings patterns across society. Corporations are not people, and are not going to be "shamed" (if that's the intention) into dividing profits more equally if it is not in their interest to do so.