/linux-master/arch/powerpc/kernel/ |
H A D | module.c | 48 (void *)sect->sh_addr + sect->sh_size); 54 (void *)sect->sh_addr + sect->sh_size); 61 (void *)sect->sh_addr + sect->sh_size); 68 me->arch.end_opd = sect->sh_addr + sect->sh_size; 77 (void *)sect->sh_addr + sect->sh_size); 84 (void *)sect->sh_addr + sect->sh_size);
|
H A D | module_32.c | 98 sechdrs[i].sh_size / sizeof(Elf32_Rela)); 106 sechdrs[i].sh_size / sizeof(Elf32_Rela), 111 sechdrs[i].sh_size 140 sechdrs[me->arch.core_plt_section].sh_size 142 sechdrs[me->arch.init_plt_section].sh_size 210 for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rela); i++) {
|
H A D | module_64.c | 220 sechdrs[i].sh_size / sizeof(Elf64_Rela)); 228 sechdrs[i].sh_size / sizeof(Elf64_Rela), 232 sechdrs[i].sh_size 237 sechdrs[i].sh_size 309 sechdrs[i].sh_size / sizeof(Elf64_Rela)); 318 sechdrs[i].sh_size / sizeof(Elf64_Rela), 322 sechdrs[i].sh_size 335 sechdrs[i].sh_size 386 numsyms = sechdrs[symindex].sh_size / sizeof(Elf64_Sym); 430 sechdrs[i].sh_size); [all...] |
/linux-master/arch/x86/kernel/ |
H A D | module.c | 53 for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rel); i++) { 99 for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rel); i++) { 260 rsize = retpolines->sh_size; 265 csize = cfi->sh_size; 272 apply_retpolines(rseg, rseg + retpolines->sh_size); 276 apply_returns(rseg, rseg + returns->sh_size); 281 apply_alternatives(aseg, aseg + alt->sh_size); 288 cs.call_end = (void *)calls->sh_addr + calls->sh_size; 293 cs.alt_end = (void *)alt->sh_addr + alt->sh_size; 300 apply_seal_endbr(iseg, iseg + ibt_endbr->sh_size); [all...] |
/linux-master/kernel/module/ |
H A D | debug_kmemleak.c | 28 info->sechdrs[i].sh_size, GFP_KERNEL);
|
H A D | version.c | 32 num_versions = sechdrs[versindex].sh_size
|
H A D | livepatch.c | 41 size = info->sechdrs[info->hdr->e_shstrndx].sh_size;
|
/linux-master/arch/mips/boot/tools/ |
H A D | relocs.c | 284 sec->shdr.sh_size = elf_xword_to_cpu(shdr.sh_size); 304 sec->strtab = malloc(sec->shdr.sh_size); 307 sec->shdr.sh_size); 313 if (fread(sec->strtab, 1, sec->shdr.sh_size, fp) != 314 sec->shdr.sh_size) 328 sec->symtab = malloc(sec->shdr.sh_size); 331 sec->shdr.sh_size); 337 if (fread(sec->symtab, 1, sec->shdr.sh_size, fp) != 338 sec->shdr.sh_size) [all...] |
/linux-master/arch/x86/tools/ |
H A D | relocs.c | 301 nsyms = sec->shdr.sh_size/sizeof(Elf_Sym); 426 shnum = elf_xword_to_cpu(shdr.sh_size); 459 sec->shdr.sh_size = elf_xword_to_cpu(shdr.sh_size); 480 sec->strtab = malloc(sec->shdr.sh_size); 482 die("malloc of %" FMT " bytes for strtab failed\n", sec->shdr.sh_size); 487 if (fread(sec->strtab, 1, sec->shdr.sh_size, fp) != sec->shdr.sh_size) 502 sec->xsymtab = malloc(sec->shdr.sh_size); 504 die("malloc of %" FMT " bytes for xsymtab failed\n", sec->shdr.sh_size); [all...] |
/linux-master/arch/s390/tools/ |
H A D | relocs.c | 172 shnum = elf_xword_to_cpu(shdr.sh_size); 207 sec->shdr.sh_size = elf_xword_to_cpu(shdr.sh_size); 229 sec->reltab = malloc(sec->shdr.sh_size); 231 die("malloc of %" FMT " bytes for relocs failed\n", sec->shdr.sh_size); 236 if (fread(sec->reltab, 1, sec->shdr.sh_size, fp) != sec->shdr.sh_size) 239 for (j = 0; j < sec->shdr.sh_size / sizeof(Elf_Rel); j++) { 310 for (j = 0; j < sec->shdr.sh_size / sizeof(Elf_Rel); j++) {
|
/linux-master/arch/alpha/kernel/ |
H A D | module.c | 95 nsyms = symtab->sh_size / sizeof(Elf64_Sym); 104 got->sh_size = 0; 112 nrela = s->sh_size / sizeof(Elf64_Rela); 116 &got->sh_size); 138 unsigned long i, n = sechdrs[relsec].sh_size / sizeof(*rela);
|
/linux-master/arch/loongarch/kernel/ |
H A D | module-sections.c | 139 int num_rela = sechdrs[i].sh_size / sizeof(Elf_Rela); 157 got_sec->sh_size = (num_gots + 1) * sizeof(struct got_entry); 165 plt_sec->sh_size = (num_plts + 1) * sizeof(struct plt_entry); 173 plt_idx_sec->sh_size = (num_plts + 1) * sizeof(struct plt_idx_entry); 181 tramp->sh_size = NR_FTRACE_PLTS * sizeof(struct plt_entry);
|
/linux-master/arch/arm/kernel/ |
H A D | module-plts.c | 83 BUG_ON(pltsec->plt_count * PLT_ENT_SIZE > pltsec->plt->sh_size); 241 int numrels = s->sh_size / sizeof(Elf32_Rel); 265 mod->arch.core.plt->sh_size = round_up(core_plts * PLT_ENT_SIZE, 273 mod->arch.init.plt->sh_size = round_up(init_plts * PLT_ENT_SIZE, 279 mod->arch.core.plt->sh_size, mod->arch.init.plt->sh_size);
|
H A D | module.c | 85 for (i = 0; i < relsec->sh_size / sizeof(Elf32_Rel); i++, rel++) { 99 if (offset < 0 || offset > (symsec->sh_size / sizeof(Elf32_Sym))) { 108 if (rel->r_offset < 0 || rel->r_offset > dstsec->sh_size - sizeof(u32)) { 111 rel->r_offset, dstsec->sh_size); 449 s->sh_size, 451 txt_sec->sh_size); 464 fixup_pv_table((void *)s->sh_addr, s->sh_size); 469 fixup_smp((void *)s->sh_addr, s->sh_size);
|
/linux-master/arch/m68k/kernel/ |
H A D | module.c | 35 for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rel); i++) { 75 for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rel); i++) {
|
/linux-master/scripts/ |
H A D | recordmcount.h | 214 return w(shdr0->sh_size); 223 shdr0->sh_size = w(new_shnum); 273 uint_t const old_shstr_sh_size = _w(shstr->sh_size); 278 uint_t t = 1 + strlen(mc_name) + _w(shstr->sh_size); 281 shstr->sh_size = _w(t); 313 mcsec.sh_size = _w((void *)mlocp - (void *)mloc0); 328 mcsec.sh_size = _w((void *)mrelp - (void *)mrel0); 415 unsigned const nrel = _w(relhdr->sh_size) / rel_entsize; 462 unsigned const nrel = _w(relhdr->sh_size) / rel_entsize; 527 unsigned const nsym = _w(symhdr->sh_size) / _ [all...] |
H A D | sorttable.h | 304 shnum = _r(&shdr[0].sh_size); 321 relocs_size = _r(&s->sh_size); 341 orc_ip_size = s->sh_size; 346 orc_size = s->sh_size; 417 custom_sort(extab_image, _r(&extab_sec->sh_size)); 419 int num_entries = _r(&extab_sec->sh_size) / extable_ent_size; 430 sym < sym + _r(&symtab_sec->sh_size) / sizeof(Elf_Sym);
|
/linux-master/arch/riscv/kernel/ |
H A D | module-sections.c | 125 int num_rela = sechdrs[i].sh_size / sizeof(Elf_Rela); 141 mod->arch.plt.shdr->sh_size = (num_plts + 1) * sizeof(struct plt_entry); 148 mod->arch.got.shdr->sh_size = (num_gots + 1) * sizeof(struct got_entry); 155 mod->arch.got_plt.shdr->sh_size = (num_plts + 1) * sizeof(struct got_entry);
|
/linux-master/arch/x86/entry/vdso/ |
H A D | vdso2c.h | 33 len = (size_t)GET_LE(&sec->sh_size); 125 syms_nr = GET_LE(&symtab_hdr->sh_size) / GET_LE(&symtab_hdr->sh_entsize); 207 (unsigned long)GET_LE(&alt_sec->sh_size)); 213 (unsigned long)GET_LE(&extable_sec->sh_size));
|
/linux-master/arch/openrisc/kernel/ |
H A D | module.c | 30 for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rel); i++) {
|
/linux-master/arch/sparc/kernel/ |
H A D | module.c | 44 for (i = 1; i < sechdrs[symidx].sh_size / sizeof(Elf_Sym); i++) { 65 for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rel); i++) { 169 sun4v_patch_1insn_range(p, p + sun4v_1insn->sh_size); 173 sun4v_patch_2insn_range(p, p + sun4v_2insn->sh_size);
|
/linux-master/drivers/remoteproc/ |
H A D | remoteproc_elf_loader.c | 376 u64 sh_addr, sh_size; local 385 sh_size = elf_shdr_get_sh_size(class, shdr); 387 if (!rproc_u64_fit_in_size_t(sh_size)) { 389 sh_size); 393 return rproc_da_to_va(rproc, sh_addr, sh_size, NULL);
|
/linux-master/arch/mips/vdso/ |
H A D | genvdso.h | 51 shdr->sh_entsize = shdr->sh_size; 98 st_count = FUNC(swap_uint)(shdr->sh_size) / st_entsize;
|
/linux-master/arch/arc/kernel/ |
H A D | module.c | 64 n = sechdrs[relsec].sh_size / sizeof(*rel_entry); 141 sechdrs[unwsec].sh_size);
|
/linux-master/tools/objtool/ |
H A D | special.c | 155 if (sec->sh.sh_size % entry->size != 0) { 161 nr_entries = sec->sh.sh_size / entry->size;
|