2.9
[glibc/nacl-glibc.git] / sysdeps / sparc / bits / link.h
blob9b8434f56fa8114c5466feff6bea671967bda553
1 /* Machine-specific audit interfaces for dynamic linker. SPARC version.
2 Copyright (C) 2005 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.
5 The GNU C Library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Lesser General Public
7 License as published by the Free Software Foundation; either
8 version 2.1 of the License, or (at your option) any later version.
10 The GNU C Library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Lesser General Public License for more details.
15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, write to the Free
17 Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
18 02111-1307 USA. */
20 #ifndef _LINK_H
21 # error "Never include <bits/link.h> directly; use <link.h> instead."
22 #endif
24 #if __WORDSIZE == 32
26 typedef struct La_sparc32_regs
28 uint32_t lr_lreg[8]; /* %l0 through %l7 */
29 uint32_t lr_reg[6]; /* %o0 through %o5 */
30 uint32_t lr_sp; /* %o6 */
31 uint32_t lr_ra; /* %o7 */
32 uint32_t lr_struct; /* Pass-by-reference struct pointer */
33 } La_sparc32_regs;
35 typedef struct La_sparc32_retval
37 uint32_t lrv_reg[2]; /* %o0 and %o1 */
38 double lrv_fpreg[2]; /* %f0 and %f2 */
39 } La_sparc32_retval;
41 #else
43 typedef struct La_sparc64_regs
45 uint64_t lr_lreg[8]; /* %l0 through %l7 */
46 uint64_t lr_reg[6]; /* %o0 through %o5 */
47 uint64_t lr_sp; /* %o6 */
48 uint64_t lr_ra; /* %o7 */
49 double lr_fpreg[16]; /* %f0 through %f30 */
50 } La_sparc64_regs;
52 typedef struct La_sparc64_retval
54 uint64_t lrv_reg[4]; /* %o0 through %o3 */
55 double lrv_fprev[4]; /* %f0 through %f8 */
56 } La_sparc64_retval;
58 #endif
60 __BEGIN_DECLS
62 #if __WORDSIZE == 32
64 extern Elf32_Addr la_sparc32_gnu_pltenter (Elf32_Sym *__sym,
65 unsigned int __ndx,
66 uintptr_t *__refcook,
67 uintptr_t *__defcook,
68 La_sparc32_regs *__regs,
69 unsigned int *__flags,
70 const char *__symname,
71 long int *__framesizep);
72 extern unsigned int la_sparc32_gnu_pltexit (Elf32_Sym *__sym,
73 unsigned int __ndx,
74 uintptr_t *__refcook,
75 uintptr_t *__defcook,
76 const La_sparc32_regs *__inregs,
77 La_sparc32_retval *__outregs,
78 const char *symname);
80 #else
82 extern Elf64_Addr la_sparc64_gnu_pltenter (Elf64_Sym *__sym,
83 unsigned int __ndx,
84 uintptr_t *__refcook,
85 uintptr_t *__defcook,
86 La_sparc64_regs *__regs,
87 unsigned int *__flags,
88 const char *__symname,
89 long int *__framesizep);
90 extern unsigned int la_sparc64_gnu_pltexit (Elf64_Sym *__sym,
91 unsigned int __ndx,
92 uintptr_t *__refcook,
93 uintptr_t *__defcook,
94 const La_sparc64_regs *__inregs,
95 La_sparc64_retval *__outregs,
96 const char *symname);
98 #endif
100 __END_DECLS