The addend for a PLTRel4 reloc should be -4.

This commit is contained in:
Tyler McMullen
2018-01-18 13:36:15 -08:00
committed by Jakob Stoklund Olesen
parent 1e49431804
commit 850896f05e

View File

@@ -899,7 +899,7 @@ call_plt_id = TailRecipe(
PUT_OP(bits, BASE_REX, sink);
sink.reloc_external(Reloc::IntelPLTRel4,
&func.dfg.ext_funcs[func_ref].name,
0);
-4);
sink.put4(0);
''')