2.9
[glibc/nacl-glibc.git] / sysdeps / alpha / bits / link.h
blob429faff432761f73f0e3d34b2b85ab5c2ee830d5
1 /* Copyright (C) 2005 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.
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.
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.
14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, write to the Free
16 Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
17 02111-1307 USA. */
19 #ifndef _LINK_H
20 # error "Never include <bits/link.h> directly; use <link.h> instead."
21 #endif
24 /* Registers for entry into PLT on Alpha. */
25 typedef struct La_alpha_regs
27 uint64_t lr_r26;
28 uint64_t lr_sp;
29 uint64_t lr_r16;
30 uint64_t lr_r17;
31 uint64_t lr_r18;
32 uint64_t lr_r19;
33 uint64_t lr_r20;
34 uint64_t lr_r21;
35 double lr_f16;
36 double lr_f17;
37 double lr_f18;
38 double lr_f19;
39 double lr_f20;
40 double lr_f21;
41 } La_alpha_regs;
43 /* Return values for calls from PLT on Alpha. */
44 typedef struct La_alpha_retval
46 uint64_t lrv_r0;
47 uint64_t lrv_r1;
48 double lrv_f0;
49 double lrv_f1;
50 } La_alpha_retval;
53 __BEGIN_DECLS
55 extern Elf64_Addr la_alpha_gnu_pltenter (Elf64_Sym *__sym, unsigned int __ndx,
56 uintptr_t *__refcook,
57 uintptr_t *__defcook,
58 La_alpha_regs *__regs,
59 unsigned int *__flags,
60 const char *__symname,
61 long int *__framesizep);
62 extern unsigned int la_alpha_gnu_pltexit (Elf64_Sym *__sym, unsigned int __ndx,
63 uintptr_t *__refcook,
64 uintptr_t *__defcook,
65 const La_alpha_regs *__inregs,
66 La_alpha_retval *__outregs,
67 const char *symname);
69 __END_DECLS