Blame sysdeps/hppa/dl-fptr.h

Packit Service 82fcde
/* Function descriptors.  HPPA version.
Packit Service 82fcde
   Copyright (C) 2003-2018 Free Software Foundation, Inc.
Packit Service 82fcde
   This file is part of the GNU C Library.
Packit Service 82fcde
Packit Service 82fcde
   The GNU C Library is free software; you can redistribute it and/or
Packit Service 82fcde
   modify it under the terms of the GNU Lesser General Public
Packit Service 82fcde
   License as published by the Free Software Foundation; either
Packit Service 82fcde
   version 2.1 of the License, or (at your option) any later version.
Packit Service 82fcde
Packit Service 82fcde
   The GNU C Library is distributed in the hope that it will be useful,
Packit Service 82fcde
   but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit Service 82fcde
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit Service 82fcde
   Lesser General Public License for more details.
Packit Service 82fcde
Packit Service 82fcde
   You should have received a copy of the GNU Lesser General Public
Packit Service 82fcde
   License along with the GNU C Library.  If not, see
Packit Service 82fcde
   <http://www.gnu.org/licenses/>.  */
Packit Service 82fcde
Packit Service 82fcde
#ifndef dl_hppa_fptr_h
Packit Service 82fcde
#define dl_hppa_fptr_h 1
Packit Service 82fcde
Packit Service 82fcde
#include <sysdeps/generic/dl-fptr.h>
Packit Service 82fcde
Packit Service 82fcde
/* Initialize function pointer code. Call before relocation processing.  */
Packit Service 82fcde
extern void _dl_fptr_init (void);
Packit Service 82fcde
Packit Service 82fcde
/* There are currently 33 dynamic symbols in ld.so.
Packit Service 82fcde
   ELF_MACHINE_BOOT_FPTR_TABLE_LEN needs to be at least that big.  */
Packit Service 82fcde
#define ELF_MACHINE_BOOT_FPTR_TABLE_LEN 64
Packit Service 82fcde
Packit Service 82fcde
#define ELF_MACHINE_LOAD_ADDRESS(var, symbol) \
Packit Service 82fcde
  asm (								\
Packit Service 82fcde
"	b,l	1f,%0\n"					\
Packit Service 82fcde
"	addil	L'" #symbol " - ($PIC_pcrel$0 - 1),%0\n"	\
Packit Service 82fcde
"1:	ldo	R'" #symbol " - ($PIC_pcrel$0 - 5)(%%r1),%0\n"	\
Packit Service 82fcde
   : "=&r" (var) : : "r1");
Packit Service 82fcde
Packit Service 82fcde
#endif /* !dl_hppa_fptr_h */