Re: OP_CALL and function pointers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Nov 18, 2011 at 9:41 AM, Pekka Enberg <penberg@xxxxxxxxxx> wrote:
>> I'm implementing support for function pointer calls and I noticed that
>> ->func->sym in 'strut instruction' is not SYM_NODE for function
>> pointers like it is for normal functions. Why is that?

On Fri, Nov 18, 2011 at 2:24 PM, Linus Torvalds
<torvalds@xxxxxxxxxxxxxxxxxxxx> wrote:
> There *is* no real symbol to work with. It's an expression. The
> expression may not even be a symbol, it could easily be some real
> expression like
>
>      ret = (flag ? fn1 : fn2)(arg1, arg2);
>
> so trying to make up some "symbol" for it is just lying and crazy.

Aah, the current code by Jeff for OP_CALL makes perfect sense now. Thanks!

                        Pekka
--
To unsubscribe from this list: send the line "unsubscribe linux-sparse" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Newbies FAQ]     [LKML]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Trinity Fuzzer Tool]

  Powered by Linux