Skip to content

Commit 79bda26

Browse files
author
Fox Snowpatch
committed
1 parent f85c105 commit 79bda26

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

arch/powerpc/include/asm/vdso.h

+1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ int vdso_getcpu_init(void);
2525
#ifdef __VDSO64__
2626
#define V_FUNCTION_BEGIN(name) \
2727
.globl name; \
28+
.type name,@function; \
2829
name: \
2930

3031
#define V_FUNCTION_END(name) \

tools/testing/selftests/vDSO/parse_vdso.c

+1-2
Original file line numberDiff line numberDiff line change
@@ -222,8 +222,7 @@ void *vdso_sym(const char *version, const char *name)
222222
ELF(Sym) *sym = &vdso_info.symtab[chain];
223223

224224
/* Check for a defined global or weak function w/ right name. */
225-
if (ELF64_ST_TYPE(sym->st_info) != STT_FUNC &&
226-
ELF64_ST_TYPE(sym->st_info) != STT_NOTYPE)
225+
if (ELF64_ST_TYPE(sym->st_info) != STT_FUNC)
227226
continue;
228227
if (ELF64_ST_BIND(sym->st_info) != STB_GLOBAL &&
229228
ELF64_ST_BIND(sym->st_info) != STB_WEAK)

0 commit comments

Comments
 (0)