From dfcb46d1498404257baf62475bc7387e6352e909 Mon Sep 17 00:00:00 2001 From: midipix Date: Sun, 24 Feb 2019 20:24:06 -0500 Subject: midipix targets: create .got entries for c++ virtual thunks. --- gcc/config/i386/midipix.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'gcc/config') diff --git a/gcc/config/i386/midipix.c b/gcc/config/i386/midipix.c index 99616aed7..022f016a0 100644 --- a/gcc/config/i386/midipix.c +++ b/gcc/config/i386/midipix.c @@ -521,8 +521,10 @@ void midipix_i386_pe_start_function (FILE * gas_exhaled, const char *name, tree void midipix_i386_pe_end_function (FILE * gas_exhaled, const char * name, tree decl) { - if (cfun->is_thunk) + if (cfun->is_thunk) { + midipix_asm_output_got_entry(gas_exhaled,name,decl,0); return; + } if (TARGET_SEH) fputs ("\t.seh_endproc\n", gas_exhaled); -- cgit v1.2.3