Loading...
1/* SPDX-License-Identifier: GPL-2.0 */
2#ifndef _ASM_IA64_MODULE_H
3#define _ASM_IA64_MODULE_H
4
5#include <asm-generic/module.h>
6
7/*
8 * IA-64-specific support for kernel module loader.
9 *
10 * Copyright (C) 2003 Hewlett-Packard Co
11 * David Mosberger-Tang <davidm@hpl.hp.com>
12 */
13
14struct elf64_shdr; /* forward declration */
15
16struct mod_arch_specific {
17 struct elf64_shdr *core_plt; /* core PLT section */
18 struct elf64_shdr *init_plt; /* init PLT section */
19 struct elf64_shdr *got; /* global offset table */
20 struct elf64_shdr *opd; /* official procedure descriptors */
21 struct elf64_shdr *unwind; /* unwind-table section */
22 unsigned long gp; /* global-pointer for module */
23
24 void *core_unw_table; /* core unwind-table cookie returned by unwinder */
25 void *init_unw_table; /* init unwind-table cookie returned by unwinder */
26 unsigned int next_got_entry; /* index of next available got entry */
27};
28
29#define ARCH_SHF_SMALL SHF_IA_64_SHORT
30
31#endif /* _ASM_IA64_MODULE_H */
1#ifndef _ASM_IA64_MODULE_H
2#define _ASM_IA64_MODULE_H
3
4#include <asm-generic/module.h>
5
6/*
7 * IA-64-specific support for kernel module loader.
8 *
9 * Copyright (C) 2003 Hewlett-Packard Co
10 * David Mosberger-Tang <davidm@hpl.hp.com>
11 */
12
13struct elf64_shdr; /* forward declration */
14
15struct mod_arch_specific {
16 struct elf64_shdr *core_plt; /* core PLT section */
17 struct elf64_shdr *init_plt; /* init PLT section */
18 struct elf64_shdr *got; /* global offset table */
19 struct elf64_shdr *opd; /* official procedure descriptors */
20 struct elf64_shdr *unwind; /* unwind-table section */
21 unsigned long gp; /* global-pointer for module */
22
23 void *core_unw_table; /* core unwind-table cookie returned by unwinder */
24 void *init_unw_table; /* init unwind-table cookie returned by unwinder */
25 unsigned int next_got_entry; /* index of next available got entry */
26};
27
28#define MODULE_PROC_FAMILY "ia64"
29#define MODULE_ARCH_VERMAGIC MODULE_PROC_FAMILY \
30 "gcc-" __stringify(__GNUC__) "." __stringify(__GNUC_MINOR__)
31
32#define ARCH_SHF_SMALL SHF_IA_64_SHORT
33
34#endif /* _ASM_IA64_MODULE_H */