lkml.org 
[lkml]   [2004]   [Mar]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: 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/

\
 
 \ /
  Last update: 2005-03-22 14:01    [W:0.032 / U:1.352 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site