* stdlib/Makefile (routines): Add quick_exit, at_quick_exit, and
[glibc.git] / sysdeps / sh / bits / link.h
blobf650aa302ee52ff218181115f7120b6fbb4d6230
1 /* Copyright (C) 2005, 2009 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 SH. */
25 typedef struct La_sh_regs
27 uint32_t lr_r2;
28 uint32_t lr_r3;
29 uint32_t lr_r4;
30 uint32_t lr_r5;
31 uint32_t lr_r6;
32 uint32_t lr_r7;
33 uint32_t lr_fpscr;
34 float lr_fr4;
35 float lr_fr5;
36 float lr_fr6;
37 float lr_fr7;
38 float lr_fr8;
39 float lr_fr9;
40 float lr_fr10;
41 float lr_fr11;
42 } La_sh_regs;
44 /* Return values for calls from PLT on SH. */
45 typedef struct La_sh_retval
47 uint32_t lrv_r0;
48 uint32_t lrv_r1;
49 float lrv_fr0;
50 float lrv_fr1;
51 } La_sh_retval;
54 __BEGIN_DECLS
56 extern Elf32_Addr la_sh_gnu_pltenter (Elf32_Sym *__sym, unsigned int __ndx,
57 uintptr_t *__refcook,
58 uintptr_t *__defcook,
59 La_sh_regs *__regs,
60 unsigned int *__flags,
61 const char *__symname,
62 long int *__framesizep);
63 extern unsigned int la_sh_gnu_pltexit (Elf32_Sym *__sym, unsigned int __ndx,
64 uintptr_t *__refcook,
65 uintptr_t *__defcook,
66 const La_sh_regs *__inregs,
67 La_sh_retval *__outregs,
68 const char *__symname);
70 __END_DECLS