Messages in this thread | | | Date | Tue, 09 Mar 2004 16:35:00 -0800 | From | Ulrich Drepper <> | Subject | Re: ppc/ppc64 and x86 vsyscalls |
| |
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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |