1 /* Resolve function pointers to VDSO functions.
2 Copyright (C) 2010 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.
4 Contributed by Maxim Kuvyrkov <maxim@codesourcery.com>, 2010.
6 The GNU C Library is free software; you can redistribute it and/or
7 modify it under the terms of the GNU Lesser General Public
8 License as published by the Free Software Foundation; either
9 version 2.1 of the License, or (at your option) any later version.
11 The GNU C Library is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 Lesser General Public License for more details.
16 You should have received a copy of the GNU Lesser General Public
17 License along with the GNU C Library. If not, see
18 <http://www.gnu.org/licenses/>. */
27 # define M68K_VDSO_SYMBOL(name) __rtld_##name
28 # define STR_M68K_VDSO_SYMBOL(name) "__rtld_" #name
30 # define M68K_VDSO_SYMBOL(name) name
31 # define STR_M68K_VDSO_SYMBOL(name) #name
34 # ifndef __ASSEMBLER__
36 /* We define __rtld_* copies for rtld.
37 We need them visible in libc to initialize. */
38 # if defined IS_IN_rtld || !defined NOT_IN_libc
39 extern void *__rtld___vdso_read_tp
;
40 extern void *__rtld___vdso_atomic_cmpxchg_32
;
41 extern void *__rtld___vdso_atomic_barrier
;
43 /* These stubs are meant to be invoked only from the assembly. */
44 extern void __vdso_read_tp_stub (void);
45 extern void __vdso_atomic_cmpxchg_32_stub (void);
46 extern void __vdso_atomic_barrier_stub (void);
47 # endif /* IS_IN_rtld || !NOT_IN_libc */
49 /* RTLD should only use its own copies. */
51 extern void *__vdso_read_tp
;
52 extern void *__vdso_atomic_cmpxchg_32
;
53 extern void *__vdso_atomic_barrier
;
54 # endif /* !IS_IN_rtld */
56 # endif /* !__ASSEMBLER__ */
60 #endif /* _M68K_VDSO_H */