Is it possbile to hack I386 backend to make all function calls to be indirect function calling?
Ian Lance Taylor
iant@google.com
Mon Oct 25 19:33:00 GMT 2010
redriver jiang <jiang.redriver@gmail.com> writes:
> I meet a requirement to make all function calls to be indirect
> function calling ( for I386 GCC compiler). I am not familiar with
> frontend, so my first idea is
>
> to hack it from backend, change the asm output for "call" and
> "call_value" insn patterns, generate a related varible in data
> section,
>
> and when output call insn, output indirect call.
You could probably just change the call_insn_operand predicate to not
accept constant_call_address_operand. Or something along those lines.
Ian
More information about the Gcc
mailing list