2006-02-28 Roland McGrath <roland@redhat.com>
[glibc-ports.git] / sysdeps / m68k / bits / link.h
blob9d0a94592f9002edbf1941f0ac6c2afb05d6d6cd
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 M68K. */
25 typedef struct La_m68k_regs
27 uint32_t lr_a0;
28 uint32_t lr_a1;
29 uint32_t lr_sp;
30 } La_m68k_regs;
32 /* Return values for calls from PLT on M68K. */
33 typedef struct La_m68k_retval
35 uint32_t lrv_d0;
36 uint32_t lrv_d1;
37 uint32_t lrv_a0;
38 long double lrv_fp0;
39 } La_m68k_retval;
42 __BEGIN_DECLS
44 extern Elf32_Addr la_m68k_gnu_pltenter (Elf32_Sym *__sym, unsigned int __ndx,
45 uintptr_t *__refcook,
46 uintptr_t *__defcook,
47 La_m68k_regs *__regs,
48 unsigned int *__flags,
49 const char *__symname,
50 long int *__framesizep);
51 extern unsigned int la_m68k_gnu_pltexit (Elf32_Sym *__sym, unsigned int __ndx,
52 uintptr_t *__refcook,
53 uintptr_t *__defcook,
54 const La_m68k_regs *__inregs,
55 La_m68k_retval *__outregs,
56 const char *symname);
58 __END_DECLS