#32025cHash generation does not respect linkVars
Description
After #28352 which intended to only generate a cHash when needed, the code was changed to skip linkVars for the generation of the cHash.
This results in a wrong calculation of the cHash when linkVars are in use.
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.