in many places, the law regarding the carrying of a handgun requires specific regulations be followed. issues such as having a valid permit for the states you will be hiking in if you qualify, strict adherence to each state's rules regarding the weapon and it's storage, and the proximity of the ammo while transporting.
simply having the gun in your pack with the ammo in some other part of the pack could be considered a violation and could land you in trouble in many jurisdictions in my neck of the woods.
then there is the issue of where exactly you are hiking – do you cross from National Park lands into some other federal, state, local, or private property along the trail? when you discharge the weapon and miss, are you going to go get the round or does Leave No Trace take a backseat to firearm fun?
i have zero problem with responsible gun ownership, i have several rifles, shotguns, and handguns. out hiking with a handgun can lead to problems for even the most responsible of us, so it makes no sense to carry one with me for that one time i might get the drop on a game animal in season.
when i want to hunt game in season, it's typically black powder and it's typically the purpose of the wilderness adventure, not a "i have a gun, who wants pheasant for dinner?"
i'll have to check on the rules on using a handgun to hunt – i would need hunter safety and a hunting license, plus i would need to be wearing blaze orange while doing so. not sure if the leadup to the taking out the firearm would be considered hunting, so i'd had better wear blaze orange during my entire trip. this is getting complicated.