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