link.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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 M68K. */
  18. typedef struct La_m68k_regs
  19. {
  20. uint32_t lr_a0;
  21. uint32_t lr_a1;
  22. uint32_t lr_sp;
  23. } La_m68k_regs;
  24. /* Return values for calls from PLT on M68K. */
  25. typedef struct La_m68k_retval
  26. {
  27. uint32_t lrv_d0;
  28. uint32_t lrv_d1;
  29. uint32_t lrv_a0;
  30. long double lrv_fp0;
  31. } La_m68k_retval;
  32. __BEGIN_DECLS
  33. extern Elf32_Addr la_m68k_gnu_pltenter (Elf32_Sym *__sym, unsigned int __ndx,
  34. uintptr_t *__refcook,
  35. uintptr_t *__defcook,
  36. La_m68k_regs *__regs,
  37. unsigned int *__flags,
  38. const char *__symname,
  39. long int *__framesizep);
  40. extern unsigned int la_m68k_gnu_pltexit (Elf32_Sym *__sym, unsigned int __ndx,
  41. uintptr_t *__refcook,
  42. uintptr_t *__defcook,
  43. const La_m68k_regs *__inregs,
  44. La_m68k_retval *__outregs,
  45. const char *__symname);
  46. __END_DECLS