Commit 9b429264 authored by Alexander Kartashov's avatar Alexander Kartashov Committed by Pavel Emelyanov

vdso: rename vdso_x86_symbols to vdso_symbols

This patch makes the name of the vDSO symbol name table
a bit more appropriate for the generic version of
the routine vdso_fill_symtable().
Signed-off-by: 's avatarAlexander Kartashov <alekskartashov@parallels.com>
Looks-good-to: Cyrill Gorcunov <gorcunov@openvz.org>
Reviewed-by: 's avatarChristopher Covington <cov@codeaurora.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 19c6534d
......@@ -100,7 +100,7 @@ int vdso_fill_symtable(char *mem, size_t size, struct vdso_symtable *t)
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
};
char *vdso_x86_symbols[VDSO_SYMBOL_MAX] = {
char *vdso_symbols[VDSO_SYMBOL_MAX] = {
[VDSO_SYMBOL_GETTIMEOFDAY] = VDSO_SYMBOL_GETTIMEOFDAY_NAME,
[VDSO_SYMBOL_GETCPU] = VDSO_SYMBOL_GETCPU_NAME,
[VDSO_SYMBOL_CLOCK_GETTIME] = VDSO_SYMBOL_CLOCK_GETTIME_NAME,
......@@ -210,10 +210,10 @@ int vdso_fill_symtable(char *mem, size_t size, struct vdso_symtable *t)
goto err;
k = get_symbol_index(&dynsymbol_names[sym->st_name],
vdso_x86_symbols,
ARRAY_SIZE(vdso_x86_symbols));
vdso_symbols,
ARRAY_SIZE(vdso_symbols));
if (k != VDSO_SYMBOL_MAX) {
builtin_memcpy(t->symbols[k].name, vdso_x86_symbols[k],
builtin_memcpy(t->symbols[k].name, vdso_symbols[k],
sizeof(t->symbols[k].name));
t->symbols[k].offset = (unsigned long)sym->st_value - base;
#if 0
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment