Move m68k from ports to libc
[jlayton/glibc.git] / sysdeps / m68k / bits / link.h
1 /* Copyright (C) 2005-2014 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    <http://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 M68K.  */
24 typedef struct La_m68k_regs
25 {
26   uint32_t lr_a0;
27   uint32_t lr_a1;
28   uint32_t lr_sp;
29 } La_m68k_regs;
30
31 /* Return values for calls from PLT on M68K.  */
32 typedef struct La_m68k_retval
33 {
34   uint32_t lrv_d0;
35   uint32_t lrv_d1;
36   uint32_t lrv_a0;
37   long double lrv_fp0;
38 } La_m68k_retval;
39
40
41 __BEGIN_DECLS
42
43 extern Elf32_Addr la_m68k_gnu_pltenter (Elf32_Sym *__sym, unsigned int __ndx,
44                                         uintptr_t *__refcook,
45                                         uintptr_t *__defcook,
46                                         La_m68k_regs *__regs,
47                                         unsigned int *__flags,
48                                         const char *__symname,
49                                         long int *__framesizep);
50 extern unsigned int la_m68k_gnu_pltexit (Elf32_Sym *__sym, unsigned int __ndx,
51                                          uintptr_t *__refcook,
52                                          uintptr_t *__defcook,
53                                          const La_m68k_regs *__inregs,
54                                          La_m68k_retval *__outregs,
55                                          const char *__symname);
56
57 __END_DECLS