Elf_Ehdr
int module_frob_arch_sections(Elf_Ehdr *hdr, Elf_Shdr *sechdrs,
int module_frob_arch_sections(Elf_Ehdr *ehdr, Elf_Shdr *sechdrs,
static inline const Elf_Shdr *find_section(const Elf_Ehdr *hdr,
int module_frob_arch_sections(Elf_Ehdr *ehdr, Elf_Shdr *sechdrs,
static int module_init_ftrace_plt(const Elf_Ehdr *hdr,
int module_finalize(const Elf_Ehdr *hdr,
int module_frob_arch_sections(Elf_Ehdr *hdr, Elf_Shdr *sechdrs,
int module_frob_arch_sections(Elf_Ehdr *ehdr, Elf_Shdr *sechdrs,
static void module_init_ftrace_plt(const Elf_Ehdr *hdr,
int module_finalize(const Elf_Ehdr *hdr,
int module_finalize(const Elf_Ehdr *hdr,
static Elf_Ehdr ehdr;
if (ehdr.e_ehsize != sizeof(Elf_Ehdr))
int module_finalize(const Elf_Ehdr *hdr,
static void layout_sections(struct module *mod, const Elf_Ehdr *hdr,
Elf_Ehdr *hdr;
hdr = (Elf_Ehdr *) v->pbuffer;
Elf_Ehdr *hdr;
hdr = (Elf_Ehdr *) v->pbuffer;
int module_finalize(const Elf_Ehdr *hdr, const Elf_Shdr *sechdrs,
int module_frob_arch_sections(CONST Elf_Ehdr *hdr,
int module_finalize(const Elf_Ehdr *hdr,
static const Elf_Shdr *find_section(const Elf_Ehdr *hdr,
int module_finalize(const Elf_Ehdr *hdr,
bool module_elf_check_arch(Elf_Ehdr *hdr)
static inline const Elf_Shdr *find_section(const Elf_Ehdr *hdr,
const Elf_Ehdr *hdr;
hdr = (Elf_Ehdr *)vdso_start;
int module_frob_arch_sections(Elf_Ehdr *ehdr, Elf_Shdr *sechdrs,
int module_finalize(const Elf_Ehdr *hdr,
static inline const Elf_Shdr *find_section(const Elf_Ehdr *hdr,
const Elf_Ehdr *ehdr;
if (len < sizeof(Elf_Ehdr))
ehdr = (Elf_Ehdr *)buf;
const Elf_Ehdr *ehdr;
ehdr = (Elf_Ehdr *)kernel;
const Elf_Ehdr *ehdr;
ehdr = (Elf_Ehdr *)kernel;
int module_frob_arch_sections(Elf_Ehdr *hdr, Elf_Shdr *sechdrs,
int module_finalize(const Elf_Ehdr *hdr,
if (ehdr.e_ehsize != sizeof(Elf_Ehdr))
static Elf_Ehdr ehdr;
extern int module_dwarf_finalize(const Elf_Ehdr *, const Elf_Shdr *,
int module_dwarf_finalize(const Elf_Ehdr *hdr, const Elf_Shdr *sechdrs,
int module_finalize(const Elf_Ehdr *hdr,
static void do_patch_sections(const Elf_Ehdr *hdr,
int module_finalize(const Elf_Ehdr *hdr,
int module_frob_arch_sections(Elf_Ehdr *hdr,
int module_finalize(const Elf_Ehdr *hdr,
static Elf_Ehdr ehdr;
if (ehdr.e_ehsize != sizeof(Elf_Ehdr))
void module_cfi_finalize(const Elf_Ehdr *hdr, const Elf_Shdr *sechdrs,
static inline void module_cfi_finalize(const Elf_Ehdr *hdr,
const Elf_Ehdr *ehdr;
Elf_Ehdr hdr;
void module_bug_finalize(const Elf_Ehdr *, const Elf_Shdr *,
static inline void module_bug_finalize(const Elf_Ehdr *hdr,
int module_finalize(const Elf_Ehdr *hdr,
bool module_elf_check_arch(Elf_Ehdr *hdr);
int module_frob_arch_sections(Elf_Ehdr *hdr,
void module_cfi_finalize(const Elf_Ehdr *hdr, const Elf_Shdr *sechdrs,
pi->ehdr = (const Elf_Ehdr *)kexec_purgatory;
const Elf_Ehdr *ehdr;
int module_enforce_rwx_sections(const Elf_Ehdr *hdr, const Elf_Shdr *sechdrs,
void module_mark_ro_after_init(const Elf_Ehdr *hdr, Elf_Shdr *sechdrs,
Elf_Ehdr *hdr;
bool __weak module_elf_check_arch(Elf_Ehdr *hdr)
int __weak module_frob_arch_sections(Elf_Ehdr *hdr,
int __weak module_finalize(const Elf_Ehdr *hdr,
void module_mark_ro_after_init(const Elf_Ehdr *hdr, Elf_Shdr *sechdrs,
int module_enforce_rwx_sections(const Elf_Ehdr *hdr, const Elf_Shdr *sechdrs,
void module_bug_finalize(const Elf_Ehdr *hdr, const Elf_Shdr *sechdrs,
Elf_Ehdr *ehdr = addr;
Elf_Ehdr *ehdr = addr;
Elf_Ehdr *ehdr = addr;
uint64_t (*ehdr_shoff)(Elf_Ehdr *ehdr);
uint16_t (*ehdr_shstrndx)(Elf_Ehdr *ehdr);
uint16_t (*ehdr_shentsize)(Elf_Ehdr *ehdr);
uint16_t (*ehdr_shnum)(Elf_Ehdr *ehdr);
static inline uint64_t ehdr64_shoff(Elf_Ehdr *ehdr)
static inline uint64_t ehdr32_shoff(Elf_Ehdr *ehdr)
static inline uint64_t ehdr_shoff(Elf_Ehdr *ehdr)
static inline uint16_t ehdr64_##fn_name(Elf_Ehdr *ehdr) \
static inline uint16_t ehdr32_##fn_name(Elf_Ehdr *ehdr) \
static inline uint16_t ehdr_##fn_name(Elf_Ehdr *ehdr) \
static Elf_Sym *find_elf_symbol(Elf_Ehdr *hdr, Elf_Shdr *symtab, char *name)
static void get_symbol_from_table(Elf_Ehdr *hdr, Elf_Shdr *symtab,
static Elf_Shdr *get_symbol_table(Elf_Ehdr *hdr)
static void print_sym(Elf_Ehdr *hdr, struct sym *s)
Elf_Ehdr *hdr;
static unsigned long get_offset_from_address(Elf_Ehdr *hdr, unsigned long addr)
static void get_symbol_from_map(Elf_Ehdr *hdr, FILE *f, char *name,
Elf_Ehdr *hdr;
Elf_Ehdr *hdr;
static unsigned int get_shnum(Elf_Ehdr const *ehdr, Elf_Shdr const *shdr0)
static void set_shnum(Elf_Ehdr *ehdr, Elf_Shdr *shdr0, unsigned int new_shnum)
static int get_shstrndx(Elf_Ehdr const *ehdr, Elf_Shdr const *shdr0)
static void find_symtab(Elf_Ehdr *const ehdr, Elf_Shdr const *shdr0,
static int append_func(Elf_Ehdr *const ehdr,
Elf_Ehdr const *const ehdr,
Elf_Ehdr const *const ehdr,
Elf_Ehdr const *const ehdr,
Elf_Ehdr const *const ehdr)
static int do_func(Elf_Ehdr *const ehdr, char const *const fname,
Elf_Ehdr *ehdr;
static int fill_relocs(void *ptr, uint64_t size, Elf_Ehdr *ehdr, uint64_t start_loc)
static void replace_relocs(void *ptr, uint64_t size, Elf_Ehdr *ehdr, uint64_t start_loc)
Elf_Ehdr *ehdr = emloc->ehdr;
static int do_sort(Elf_Ehdr *ehdr,
Elf_Ehdr *ehdr = addr;
Elf_Ehdr *ehdr = etrace->ehdr;
Elf_Ehdr *ehdr = addr;
Elf_Ehdr *ehdr;
Elf_Ehdr *ehdr = etrace->ehdr;
Elf_Ehdr *ehdr;
#define GEN_ELF_TEXT_OFFSET round_up(sizeof(Elf_Ehdr) + sizeof(Elf_Phdr), 16)