Update copyright notices with scripts/update-copyrights
[glibc.git] / ports / sysdeps / hppa / bits / link.h
blobfa6e1ebe70657f380caef128e817286a48b15ced
1 /* Copyright (C) 2005-2014 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, see
16 <http://www.gnu.org/licenses/>. */
18 #ifndef _LINK_H
19 # error "Never include <bits/link.h> directly; use <link.h> instead."
20 #endif
22 /* Registers for entry into PLT on hppa. */
23 typedef struct La_hppa_regs
25 uint32_t lr_reg[4];
26 double lr_fpreg[4];
27 uint32_t lr_sp;
28 uint32_t lr_ra;
29 } La_hppa_regs;
31 /* Return values for calls from PLT on hppa. */
32 typedef struct La_hppa_retval
34 uint32_t lrv_r28;
35 uint32_t lrv_r29;
36 double lr_fr4;
37 } La_hppa_retval;
40 __BEGIN_DECLS
42 extern Elf32_Addr la_hppa_gnu_pltenter (Elf32_Sym *__sym, unsigned int __ndx,
43 uintptr_t *__refcook,
44 uintptr_t *__defcook,
45 La_hppa_regs *__regs,
46 unsigned int *__flags,
47 const char *__symname,
48 long int *__framesizep);
49 extern unsigned int la_hppa_gnu_pltexit (Elf32_Sym *__sym, unsigned int __ndx,
50 uintptr_t *__refcook,
51 uintptr_t *__defcook,
52 const La_hppa_regs *__inregs,
53 La_hppa_retval *__outregs,
54 const char *symname);
56 __END_DECLS