Re: ppc/ppc64 and x86 vsyscalls

From: Ulrich Drepper
Date: Tue Mar 09 2004 - 19:37:05 EST


Benjamin Herrenschmidt wrote:

> /* In one place the actual function implementation */
> function_A_vers_1()
> function_A_vers_2()
> function_A_vers_3()
> function_B_vers_1()
> function_B_vers_2()
> etc .../...
>
> /* Then, some empty "stubs" for the symbol table that gets really
> * linked into user binaries. Those are the symbol table entries
> * that get patched
> */
> function_A() {}
> function_B() {}
>
> Sounds right ?

Basically yes. But you don't actually need the stub functions. You
just need a symbol table entry which can be arranged via an alias to any
one of the real functions.

--
â Ulrich Drepper â Red Hat, Inc. â 444 Castro St â Mountain View, CA â
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/