1 --- binutils-2.31.1/gas/write.c.orig 2018-07-06 10:47:19.030146560 +0000
2 +++ binutils-2.31.1/gas/write.c 2018-10-02 15:36:34.909115392 +0000
7 + /* Also convert fx_subsy if present */
8 + if (fixp->fx_subsy != NULL)
10 + symbolS *sub_sym = fixp->fx_subsy;
11 + while (symbol_equated_reloc_p (sub_sym)
12 + || S_IS_WEAKREFR (sub_sym))
14 + symbolS *newsym = symbol_get_value_expression (sub_sym)->X_add_symbol;
15 + if (sub_sym == newsym)
17 + fixp->fx_offset -= symbol_get_value_expression (sub_sym)->X_add_number;
18 + fixp->fx_subsy = newsym;
23 if (symbol_mri_common_p (sym))
25 fixp->fx_offset += S_GET_VALUE (sym);