In the PPC64 target we map toc-relative relocations, dynamic thread pointer relative relocations and got relocations into a corresponding ADDR16 relocation type for handling in relocateOne. This patch saves the orignal RelType before mapping to an ADDR16 relocation so that any diagnostic messages will not mistakenly use the mapped type.
|615–617 ↗||(On Diff #180697)|
I'm not using the new variable since the call to isTocOptType comes before we map the relocations to an addr16 type and Type is still the original type. With the comment I'm trying to convey there is an explicit dependency between isTocOptType and toAddr16Rel.