Hello All,

I need some clarification regarding the target hook "TARGET_INIT_LIBFUNCS".

I wanted to replace all the instances of 'memcpy' with '__memcpy'. For
that, i have used the above mentioned target hook with the code as
shown below:

memcpy_libfunc = init_one_libfunc ("__memcpy");

I can see while debugging that function table is getting updated, but
i cannot see this change in the assembly file.

(gdb) p debug_rtx((&default_target_libfuncs)->x_libfunc_table[1])
(symbol_ref:SI ("memcpy") [flags 0x41])
$1 = void
(gdb) n
(gdb) p debug_rtx((&default_target_libfuncs)->x_libfunc_table[1])
(symbol_ref:SI ("__memcpy") [flags 0x41])

Am i missing any other details or is this not the right way to do this?

Regards,
Rohit

Reply via email to