got_entry
struct got_entry *g, *n;
struct got_entry *next;
struct got_entry *chains, Elf64_Xword *poffset)
struct got_entry *g;
struct got_entry *chains;
chains = kzalloc_objs(struct got_entry, nsyms);
static inline struct got_entry *get_got_entry(Elf_Addr val,
struct got_entry *got = (struct got_entry *)sechdrs[sec->shndx].sh_addr;
static inline struct got_entry emit_got_entry(Elf_Addr val)
return (struct got_entry) { val };
got_sec->sh_size = (num_gots + 1) * sizeof(struct got_entry);
struct got_entry *got = get_got_entry(val, sechdrs, got_sec);
got = (struct got_entry *)sechdrs[got_sec->shndx].sh_addr;
mod_mem->size += gots * sizeof(struct got_entry);
struct got_entry *got;
pr_debug("GOT ENTRY %d[%lx] val %lx\n", i, i*sizeof(struct got_entry),
return i * sizeof(struct got_entry);
static inline struct got_entry emit_got_entry(unsigned long val)
return (struct got_entry) {val};
static inline struct got_entry *get_got_entry(unsigned long val,
struct got_entry *got = (struct got_entry *)(sec->shdr->sh_addr);
struct got_entry *got_plt = (struct got_entry *)sec->shdr->sh_addr;
struct got_entry *got = get_got_entry(val, got_sec);
mod->arch.got.shdr->sh_size = (num_gots + 1) * sizeof(struct got_entry);
mod->arch.got_plt.shdr->sh_size = (num_plts + 1) * sizeof(struct got_entry);
got = (struct got_entry *)got_sec->shdr->sh_addr;
struct got_entry *got_plt;
got_plt = (struct got_entry *)got_plt_sec->shdr->sh_addr;