1 /* Machine-specific audit interfaces for dynamic linker. SPARC version.
2 Copyright (C) 2005, 2009 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
21 # error "Never include <bits/link.h> directly; use <link.h> instead."
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 */
35 typedef struct La_sparc32_retval
37 uint32_t lrv_reg
[2]; /* %o0 and %o1 */
38 double lrv_fpreg
[2]; /* %f0 and %f2 */
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 */
52 typedef struct La_sparc64_retval
54 uint64_t lrv_reg
[4]; /* %o0 through %o3 */
55 double lrv_fprev
[4]; /* %f0 through %f8 */
64 extern Elf32_Addr
la_sparc32_gnu_pltenter (Elf32_Sym
*__sym
,
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
,
76 const La_sparc32_regs
*__inregs
,
77 La_sparc32_retval
*__outregs
,
78 const char *__symname
);
82 extern Elf64_Addr
la_sparc64_gnu_pltenter (Elf64_Sym
*__sym
,
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
,
94 const La_sparc64_regs
*__inregs
,
95 La_sparc64_retval
*__outregs
,
96 const char *__symname
);