]>
Commit | Line | Data |
---|---|---|
1294f728 | 1 | /* Function descriptors. HPPA version. |
04277e02 | 2 | Copyright (C) 2003-2019 Free Software Foundation, Inc. |
1294f728 UD |
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 | |
ab84e3ff | 16 | License along with the GNU C Library. If not, see |
5a82c748 | 17 | <https://www.gnu.org/licenses/>. */ |
1294f728 UD |
18 | |
19 | #ifndef dl_hppa_fptr_h | |
20 | #define dl_hppa_fptr_h 1 | |
21 | ||
22 | #include <sysdeps/generic/dl-fptr.h> | |
23 | ||
dde6fc78 CD |
24 | /* Initialize function pointer code. Call before relocation processing. */ |
25 | extern void _dl_fptr_init (void); | |
26 | ||
057c783b | 27 | /* There are currently 33 dynamic symbols in ld.so. |
1294f728 | 28 | ELF_MACHINE_BOOT_FPTR_TABLE_LEN needs to be at least that big. */ |
5556231d | 29 | #define ELF_MACHINE_BOOT_FPTR_TABLE_LEN 64 |
057c783b CD |
30 | |
31 | #define ELF_MACHINE_LOAD_ADDRESS(var, symbol) \ | |
32 | asm ( \ | |
33 | " b,l 1f,%0\n" \ | |
800a496a JDA |
34 | " addil L'" #symbol " - ($PIC_pcrel$0 - 1),%0\n" \ |
35 | "1: ldo R'" #symbol " - ($PIC_pcrel$0 - 5)(%%r1),%0\n" \ | |
057c783b | 36 | : "=&r" (var) : : "r1"); |
1294f728 UD |
37 | |
38 | #endif /* !dl_hppa_fptr_h */ |