link.h 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. /* Copyright (C) 2005-2019 Free Software Foundation, Inc.
  2. This file is part of the GNU C Library.
  3. The GNU C Library is free software; you can redistribute it and/or
  4. modify it under the terms of the GNU Lesser General Public
  5. License as published by the Free Software Foundation; either
  6. version 2.1 of the License, or (at your option) any later version.
  7. The GNU C Library is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  10. Lesser General Public License for more details.
  11. You should have received a copy of the GNU Lesser General Public
  12. License along with the GNU C Library; if not, see
  13. <http://www.gnu.org/licenses/>. */
  14. #ifndef _LINK_H
  15. # error "Never include <bits/link.h> directly; use <link.h> instead."
  16. #endif
  17. /* Registers for entry into PLT on SH. */
  18. typedef struct La_sh_regs
  19. {
  20. uint32_t lr_r2;
  21. uint32_t lr_r3;
  22. uint32_t lr_r4;
  23. uint32_t lr_r5;
  24. uint32_t lr_r6;
  25. uint32_t lr_r7;
  26. uint32_t lr_fpscr;
  27. float lr_fr4;
  28. float lr_fr5;
  29. float lr_fr6;
  30. float lr_fr7;
  31. float lr_fr8;
  32. float lr_fr9;
  33. float lr_fr10;
  34. float lr_fr11;
  35. } La_sh_regs;
  36. /* Return values for calls from PLT on SH. */
  37. typedef struct La_sh_retval
  38. {
  39. uint32_t lrv_r0;
  40. uint32_t lrv_r1;
  41. float lrv_fr0;
  42. float lrv_fr1;
  43. } La_sh_retval;
  44. __BEGIN_DECLS
  45. extern Elf32_Addr la_sh_gnu_pltenter (Elf32_Sym *__sym, unsigned int __ndx,
  46. uintptr_t *__refcook,
  47. uintptr_t *__defcook,
  48. La_sh_regs *__regs,
  49. unsigned int *__flags,
  50. const char *__symname,
  51. long int *__framesizep);
  52. extern unsigned int la_sh_gnu_pltexit (Elf32_Sym *__sym, unsigned int __ndx,
  53. uintptr_t *__refcook,
  54. uintptr_t *__defcook,
  55. const La_sh_regs *__inregs,
  56. La_sh_retval *__outregs,
  57. const char *__symname);
  58. __END_DECLS