(root)/
glibc-2.38/
sysdeps/
or1k/
bits/
link.h
       1  /* Declarations for dynamic linker interface. OpenRISC version.
       2     Copyright (C) 2022-2023 Free Software Foundation, Inc.
       3     This file is part of the GNU C Library.
       4  
       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
       7     License as published by the Free Software Foundation; either
       8     version 2.1 of the License, or (at your option) any later version.
       9  
      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.
      14  
      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/>.  */
      18  
      19  #ifndef _LINK_H
      20  # error "Never include <bits/link.h> directly; use <link.h> instead."
      21  #endif
      22  
      23  /* Registers for entry into PLT.  */
      24  typedef struct La_or1k_regs
      25  {
      26    uint32_t lr_reg[6]; /* Args passed in r3-r8.  */
      27    uint32_t lr_sp;     /* Register r1.  */
      28    uint32_t lr_lr;     /* Register r9.  */
      29  } La_or1k_regs;
      30  
      31  /* Return values for calls from PLT.  */
      32  typedef struct La_or1k_retval
      33  {
      34    /* Up to two 32-bit registers used for a return value.  */
      35    uint32_t lrv_reg[2];
      36  } La_or1k_retval;
      37  
      38  __BEGIN_DECLS
      39  
      40  extern Elf32_Addr la_or1k_gnu_pltenter (Elf32_Sym *__sym, unsigned int __ndx,
      41  					uintptr_t *__refcook,
      42  					uintptr_t *__defcook,
      43  					La_or1k_regs *__regs,
      44  					unsigned int *__flags,
      45  					const char *__symname,
      46  					long int *__framesizep);
      47  extern unsigned int la_or1k_gnu_pltexit (Elf32_Sym *__sym, unsigned int __ndx,
      48  					 uintptr_t *__refcook,
      49  					 uintptr_t *__defcook,
      50  					 const La_or1k_regs *__inregs,
      51  					 La_or1k_retval *__outregs,
      52  					 const char *__symname);
      53  
      54  __END_DECLS