xref: /openbmc/linux/arch/s390/include/asm/module.h (revision ee7da21a)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _ASM_S390_MODULE_H
3 #define _ASM_S390_MODULE_H
4 
5 #include <asm-generic/module.h>
6 
7 /*
8  * This file contains the s390 architecture specific module code.
9  */
10 
11 struct mod_arch_syminfo
12 {
13 	unsigned long got_offset;
14 	unsigned long plt_offset;
15 	int got_initialized;
16 	int plt_initialized;
17 };
18 
19 struct mod_arch_specific
20 {
21 	/* Starting offset of got in the module core memory. */
22 	unsigned long got_offset;
23 	/* Starting offset of plt in the module core memory. */
24 	unsigned long plt_offset;
25 	/* Size of the got. */
26 	unsigned long got_size;
27 	/* Size of the plt. */
28 	unsigned long plt_size;
29 	/* Number of symbols in syminfo. */
30 	int nsyms;
31 	/* Additional symbol information (got and plt offsets). */
32 	struct mod_arch_syminfo *syminfo;
33 };
34 
35 #endif /* _ASM_S390_MODULE_H */
36