[BOLT] Preserve original jump table relocations
Summary: Remove relocations against internal function labels, e.g. jump table relocations, only when overwriting them. While reading an input file with relocations, we create internal relocations against code references (we skip PIC relocations). Later, when we discover jump tables, we remove corresponding relocations with the assumption that original relocations will either be ignored or replaced by new relocations. However, it is possible to miss some references to the jump table, in which case the original entries will not be ignored. While such situation is abnormal, it is still a better/safer approach to preserve relocations if we are not replacing them with new ones. (cherry picked from FBD28406628)
parent
81c59d9a
Please register or sign in to comment