blob: 7271b9c5fc7605b7395010e5b9a4966b23f1d405 [file] [log] [blame]
Andrew Scullb4b6d4a2019-01-02 15:54:55 +00001/* 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 {
Olivier Deprez0e641232021-09-23 10:07:05 +020017 /* Used only at module load time. */
Andrew Scullb4b6d4a2019-01-02 15:54:55 +000018 struct elf64_shdr *core_plt; /* core PLT section */
19 struct elf64_shdr *init_plt; /* init PLT section */
20 struct elf64_shdr *got; /* global offset table */
21 struct elf64_shdr *opd; /* official procedure descriptors */
22 struct elf64_shdr *unwind; /* unwind-table section */
23 unsigned long gp; /* global-pointer for module */
Olivier Deprez0e641232021-09-23 10:07:05 +020024 unsigned int next_got_entry; /* index of next available got entry */
Andrew Scullb4b6d4a2019-01-02 15:54:55 +000025
Olivier Deprez0e641232021-09-23 10:07:05 +020026 /* Used at module run and cleanup time. */
Andrew Scullb4b6d4a2019-01-02 15:54:55 +000027 void *core_unw_table; /* core unwind-table cookie returned by unwinder */
28 void *init_unw_table; /* init unwind-table cookie returned by unwinder */
Olivier Deprez0e641232021-09-23 10:07:05 +020029 void *opd_addr; /* symbolize uses .opd to get to actual function */
30 unsigned long opd_size;
Andrew Scullb4b6d4a2019-01-02 15:54:55 +000031};
32
Andrew Scullb4b6d4a2019-01-02 15:54:55 +000033#define ARCH_SHF_SMALL SHF_IA_64_SHORT
34
35#endif /* _ASM_IA64_MODULE_H */