1 /* Machine-specific audit interfaces for dynamic linker. SPARC version.
2 Copyright (C) 2005-2015 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, see
17 <http://www.gnu.org/licenses/>. */
20 # error "Never include <bits/link.h> directly; use <link.h> instead."
25 typedef struct La_sparc32_regs
27 uint32_t lr_lreg
[8]; /* %l0 through %l7 */
28 uint32_t lr_reg
[6]; /* %o0 through %o5 */
29 uint32_t lr_sp
; /* %o6 */
30 uint32_t lr_ra
; /* %o7 */
31 uint32_t lr_struct
; /* Pass-by-reference struct pointer */
34 typedef struct La_sparc32_retval
36 uint32_t lrv_reg
[2]; /* %o0 and %o1 */
37 double lrv_fpreg
[2]; /* %f0 and %f2 */
42 typedef struct La_sparc64_regs
44 uint64_t lr_lreg
[8]; /* %l0 through %l7 */
45 uint64_t lr_reg
[6]; /* %o0 through %o5 */
46 uint64_t lr_sp
; /* %o6 */
47 uint64_t lr_ra
; /* %o7 */
48 double lr_fpreg
[16]; /* %f0 through %f30 */
51 typedef struct La_sparc64_retval
53 uint64_t lrv_reg
[4]; /* %o0 through %o3 */
54 double lrv_fprev
[4]; /* %f0 through %f8 */
63 extern Elf32_Addr
la_sparc32_gnu_pltenter (Elf32_Sym
*__sym
,
67 La_sparc32_regs
*__regs
,
68 unsigned int *__flags
,
69 const char *__symname
,
70 long int *__framesizep
);
71 extern unsigned int la_sparc32_gnu_pltexit (Elf32_Sym
*__sym
,
75 const La_sparc32_regs
*__inregs
,
76 La_sparc32_retval
*__outregs
,
77 const char *__symname
);
81 extern Elf64_Addr
la_sparc64_gnu_pltenter (Elf64_Sym
*__sym
,
85 La_sparc64_regs
*__regs
,
86 unsigned int *__flags
,
87 const char *__symname
,
88 long int *__framesizep
);
89 extern unsigned int la_sparc64_gnu_pltexit (Elf64_Sym
*__sym
,
93 const La_sparc64_regs
*__inregs
,
94 La_sparc64_retval
*__outregs
,
95 const char *__symname
);