1 /* Copyright (C) 2005-2022 Free Software Foundation, Inc.
2    This file is part of the GNU C Library.
3 
4    The GNU C Library is free software; you can redistribute it and/or
5    modify it under the terms of the GNU Lesser General Public
6    License as published by the Free Software Foundation; either
7    version 2.1 of the License, or (at your option) any later version.
8 
9    The GNU C Library is distributed in the hope that it will be useful,
10    but WITHOUT ANY WARRANTY; without even the implied warranty of
11    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12    Lesser General Public License for more details.
13 
14    You should have received a copy of the GNU Lesser General Public
15    License along with the GNU C Library.  If not, see
16    <https://www.gnu.org/licenses/>.  */
17 
18 #ifndef	_LINK_H
19 # error "Never include <bits/link.h> directly; use <link.h> instead."
20 #endif
21 
22 
23 /* Registers for entry into PLT on Alpha.  */
24 typedef struct La_alpha_regs
25 {
26   uint64_t lr_r26;
27   uint64_t lr_sp;
28   uint64_t lr_r16;
29   uint64_t lr_r17;
30   uint64_t lr_r18;
31   uint64_t lr_r19;
32   uint64_t lr_r20;
33   uint64_t lr_r21;
34   double lr_f16;
35   double lr_f17;
36   double lr_f18;
37   double lr_f19;
38   double lr_f20;
39   double lr_f21;
40 } La_alpha_regs;
41 
42 /* Return values for calls from PLT on Alpha.  */
43 typedef struct La_alpha_retval
44 {
45   uint64_t lrv_r0;
46   uint64_t lrv_r1;
47   double lrv_f0;
48   double lrv_f1;
49 } La_alpha_retval;
50 
51 
52 __BEGIN_DECLS
53 
54 extern Elf64_Addr la_alpha_gnu_pltenter (Elf64_Sym *__sym, unsigned int __ndx,
55 				         uintptr_t *__refcook,
56 				         uintptr_t *__defcook,
57 				         La_alpha_regs *__regs,
58 				         unsigned int *__flags,
59 				         const char *__symname,
60 				         long int *__framesizep);
61 extern unsigned int la_alpha_gnu_pltexit (Elf64_Sym *__sym, unsigned int __ndx,
62 					  uintptr_t *__refcook,
63 					  uintptr_t *__defcook,
64 					  const La_alpha_regs *__inregs,
65 					  La_alpha_retval *__outregs,
66 					  const char *symname);
67 
68 __END_DECLS
69