1 /* Machine-dependent ELF runtime symbol resolution, OpenRISC version.
2 Copyright (C) 2022-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
7 License as published by the Free Software Foundation; either
8 version 2.1 of the 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, write to the Free
17 Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
22 /* This code is plugged into the PLT and used by the dynamic linker to
23 call _dl_fixup (dl-runtime.c).
25 We assume that R11 contains the relocation offset and R12 contains
26 link_map (_DYNAMIC). This must be consistent with the JUMP_SLOT
27 layout generated by binutils. */
29 ENTRY (_dl_runtime_resolve)
33 /* save function arguments. */
51 .cfi_def_cfa_offset 32
59 /* Restore function arguments. */
68 /* restore return address. */
73 END (_dl_runtime_resolve)