Update copyright dates with scripts/update-copyrights
[glibc.git] / sysdeps / microblaze / bits / link.h
blobc379f398c2f13dccaf368d12a34d4e52579cbe63
1 /* Copyright (C) 2005-2023 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.
5 The GNU C Library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Lesser General Public License as
7 published by the Free Software Foundation; either version 2.1 of the
8 License, or (at your option) any later version.
10 The GNU C Library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Lesser General Public License for more details.
15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see
17 <https://www.gnu.org/licenses/>. */
19 #ifndef _LINK_H
20 # error "Never include <bits/link.h> directly; use <link.h> instead."
21 #endif
23 /* Registers for entry into PLT on Microblaze. */
24 typedef struct La_microblaze_regs
26 uint32_t lr_r0;
27 uint32_t lr_r1;
28 uint32_t lr_sp;
29 } La_microblaze_regs;
31 /* Return values for calls from PLT on Microblaze. */
32 typedef struct La_microblaze_retval
34 uint32_t lrv_r3;
35 } La_microblaze_retval;
38 __BEGIN_DECLS
40 extern Elf32_Addr la_microblaze_gnu_pltenter (Elf32_Sym *__sym,
41 unsigned int __ndx,
42 uintptr_t *__refcook,
43 uintptr_t *__defcook,
44 La_microblaze_regs *__regs,
45 unsigned int *__flags,
46 const char *__symname,
47 long int *__framesizep);
49 extern unsigned int la_microblaze_gnu_pltexit (Elf32_Sym *__sym,
50 unsigned int __ndx,
51 uintptr_t *__refcook,
52 uintptr_t *__defcook,
53 const La_microblaze_regs *__inregs,
54 La_microblaze_retval *__outregs,
55 const char *__symname);
57 __END_DECLS