fmt: update to 11.1.2
[oi-userland.git] / components / developer / binutils / patches / 02-gas.write.c.patch
blob48d3d701d929fb643e26e8f29a9992ee72ea81f7
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
3 @@ -827,6 +827,22 @@
4 sym = newsym;
7 + /* Also convert fx_subsy if present */
8 + if (fixp->fx_subsy != NULL)
9 + {
10 + symbolS *sub_sym = fixp->fx_subsy;
11 + while (symbol_equated_reloc_p (sub_sym)
12 + || S_IS_WEAKREFR (sub_sym))
13 + {
14 + symbolS *newsym = symbol_get_value_expression (sub_sym)->X_add_symbol;
15 + if (sub_sym == newsym)
16 + break;
17 + fixp->fx_offset -= symbol_get_value_expression (sub_sym)->X_add_number;
18 + fixp->fx_subsy = newsym;
19 + sub_sym = newsym;
20 + }
21 + }
23 if (symbol_mri_common_p (sym))
25 fixp->fx_offset += S_GET_VALUE (sym);