Home
last modified time | relevance | path

Searched refs:sh_size (Results 1 – 56 of 56) sorted by relevance

/linux-4.4.14/arch/blackfin/kernel/
Dmodule.c37 if (s->sh_size == 0) in module_frob_arch_sections()
44 dest = l1_inst_sram_alloc(s->sh_size); in module_frob_arch_sections()
50 dma_memcpy(dest, (void *)s->sh_addr, s->sh_size); in module_frob_arch_sections()
56 dest = l1_data_sram_alloc(s->sh_size); in module_frob_arch_sections()
62 memcpy(dest, (void *)s->sh_addr, s->sh_size); in module_frob_arch_sections()
68 dest = l1_data_sram_zalloc(s->sh_size); in module_frob_arch_sections()
77 dest = l1_data_B_sram_alloc(s->sh_size); in module_frob_arch_sections()
83 memcpy(dest, (void *)s->sh_addr, s->sh_size); in module_frob_arch_sections()
87 dest = l1_data_B_sram_alloc(s->sh_size); in module_frob_arch_sections()
93 memset(dest, 0, s->sh_size); in module_frob_arch_sections()
[all …]
/linux-4.4.14/arch/arm/kernel/
Dmodule-plts.c45 plt_end = (void *)plt + mod->arch.init_plt->sh_size; in get_module_plt()
49 plt_end = (void *)plt + mod->arch.core_plt->sh_size; in get_module_plt()
155 int numrels = s->sh_size / sizeof(Elf32_Rel); in module_frob_arch_sections()
170 mod->arch.core_plt->sh_size = round_up(core_plts * PLT_ENT_SIZE, in module_frob_arch_sections()
177 mod->arch.init_plt->sh_size = round_up(init_plts * PLT_ENT_SIZE, in module_frob_arch_sections()
181 mod->arch.core_plt->sh_size, mod->arch.init_plt->sh_size); in module_frob_arch_sections()
Dmodule.c64 for (i = 0; i < relsec->sh_size / sizeof(Elf32_Rel); i++, rel++) { in apply_relocate()
75 if (offset < 0 || offset > (symsec->sh_size / sizeof(Elf32_Sym))) { in apply_relocate()
84 if (rel->r_offset < 0 || rel->r_offset > dstsec->sh_size - sizeof(u32)) { in apply_relocate()
87 rel->r_offset, dstsec->sh_size); in apply_relocate()
367 maps[i].unw_sec->sh_size, in module_finalize()
369 maps[i].txt_sec->sh_size); in module_finalize()
374 fixup_pv_table((void *)s->sh_addr, s->sh_size); in module_finalize()
379 fixup_smp((void *)s->sh_addr, s->sh_size); in module_finalize()
Dvdso.c114 *size = sechdrs[i].sh_size; in find_section()
/linux-4.4.14/arch/powerpc/kernel/
Dmodule.c56 (void *)sect->sh_addr + sect->sh_size); in module_finalize()
62 (void *)sect->sh_addr + sect->sh_size); in module_finalize()
69 (void *)sect->sh_addr + sect->sh_size); in module_finalize()
76 (void *)sect->sh_addr + sect->sh_size); in module_finalize()
Dmodule_32.c124 sechdrs[i].sh_size / sizeof(Elf32_Rela)); in get_plt_size()
132 sechdrs[i].sh_size / sizeof(Elf32_Rela), in get_plt_size()
137 sechdrs[i].sh_size in get_plt_size()
166 sechdrs[me->arch.core_plt_section].sh_size in module_frob_arch_sections()
168 sechdrs[me->arch.init_plt_section].sh_size in module_frob_arch_sections()
226 for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rela); i++) { in apply_relocate_add()
Dmodule_64.c283 sechdrs[i].sh_size / sizeof(Elf64_Rela)); in get_stubs_size()
291 sechdrs[i].sh_size / sizeof(Elf64_Rela), in get_stubs_size()
295 sechdrs[i].sh_size in get_stubs_size()
351 numsyms = sechdrs[symindex].sh_size / sizeof(Elf64_Sym); in find_dot_toc()
377 sechdrs[i].sh_size); in module_frob_arch_sections()
385 sechdrs[i].sh_size / sizeof(Elf64_Sym), in module_frob_arch_sections()
403 sechdrs[me->arch.stubs_section].sh_size = get_stubs_size(hdr, sechdrs); in module_frob_arch_sections()
456 num_stubs = sechdrs[me->arch.stubs_section].sh_size / sizeof(*stubs); in stub_for_addr()
512 for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rela); i++) { in apply_relocate_add()
Dvdso.c270 *size = sechdrs[i].sh_size; in find_section32()
375 *size = sechdrs[i].sh_size; in find_section64()
/linux-4.4.14/arch/unicore32/kernel/
Dmodule.c42 for (i = 0; i < relsec->sh_size / sizeof(Elf32_Rel); i++, rel++) { in apply_relocate()
49 (symsec->sh_size / sizeof(Elf32_Sym))) { in apply_relocate()
59 dstsec->sh_size - sizeof(u32)) { in apply_relocate()
63 dstsec->sh_size); in apply_relocate()
/linux-4.4.14/arch/x86/tools/
Drelocs.c281 nsyms = sec->shdr.sh_size/sizeof(Elf_Sym); in sym_lookup()
413 sec->shdr.sh_size = elf_xword_to_cpu(shdr.sh_size); in read_shdrs()
432 sec->strtab = malloc(sec->shdr.sh_size); in read_strtabs()
435 sec->shdr.sh_size); in read_strtabs()
441 if (fread(sec->strtab, 1, sec->shdr.sh_size, fp) in read_strtabs()
442 != sec->shdr.sh_size) { in read_strtabs()
457 sec->symtab = malloc(sec->shdr.sh_size); in read_symtabs()
460 sec->shdr.sh_size); in read_symtabs()
466 if (fread(sec->symtab, 1, sec->shdr.sh_size, fp) in read_symtabs()
467 != sec->shdr.sh_size) { in read_symtabs()
[all …]
/linux-4.4.14/arch/x86/kernel/
Dmodule.c112 for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rel); i++) { in apply_relocate()
153 for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rel); i++) { in apply_relocate_add()
232 apply_alternatives(aseg, aseg + alt->sh_size); in module_finalize()
238 lseg, lseg + locks->sh_size, in module_finalize()
239 tseg, tseg + text->sh_size); in module_finalize()
244 apply_paravirt(pseg, pseg + para->sh_size); in module_finalize()
Dmachine_kexec_64.c447 for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rel); i++) { in arch_kexec_apply_relocations_add()
/linux-4.4.14/arch/score/kernel/
Dmodule.c40 for (i = 0; i < relsec->sh_size / sizeof(Elf32_Rel); i++, rel++) { in apply_relocate()
47 (r_offset > (symsec->sh_size / sizeof(Elf32_Sym)))) { in apply_relocate()
56 (rel->r_offset > dstsec->sh_size - sizeof(u32))) { in apply_relocate()
60 dstsec->sh_size); in apply_relocate()
/linux-4.4.14/arch/metag/kernel/
Dmodule.c110 sechdrs[i].sh_size / sizeof(Elf32_Rela)); in get_plt_size()
118 sechdrs[i].sh_size / sizeof(Elf32_Rela), in get_plt_size()
123 sechdrs[i].sh_size in get_plt_size()
152 sechdrs[me->arch.core_plt_section].sh_size in module_frob_arch_sections()
155 sechdrs[me->arch.init_plt_section].sh_size in module_frob_arch_sections()
213 for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rel); i++) { in apply_relocate_add()
/linux-4.4.14/arch/ia64/kernel/
Dmodule.c451 unsigned long numrels = s->sh_size/sizeof(Elf64_Rela); in module_frob_arch_sections()
467 mod->arch.core_plt->sh_size = core_plts * sizeof(struct plt_entry); in module_frob_arch_sections()
471 mod->arch.init_plt->sh_size = init_plts * sizeof(struct plt_entry); in module_frob_arch_sections()
475 mod->arch.got->sh_size = gots * sizeof(struct got_entry); in module_frob_arch_sections()
479 mod->arch.opd->sh_size = fdescs * sizeof(struct fdesc); in module_frob_arch_sections()
481 __func__, mod->arch.core_plt->sh_size, mod->arch.init_plt->sh_size, in module_frob_arch_sections()
482 mod->arch.got->sh_size, mod->arch.opd->sh_size); in module_frob_arch_sections()
521 BUG_ON(e >= (struct got_entry *) (mod->arch.got->sh_addr + mod->arch.got->sh_size)); in get_ltoff()
547 plt_end = (void *) plt + mod->arch.init_plt->sh_size; in get_plt()
550 plt_end = (void *) plt + mod->arch.core_plt->sh_size; in get_plt()
[all …]
/linux-4.4.14/scripts/
Dsortextable.h121 num_sections = _r(&shdr[0].sh_size); in do_func()
139 relocs_size = _r(&shdr[i].sh_size); in do_func()
168 custom_sort(extab_image, _r(&extab_sec->sh_size)); in do_func()
170 int num_entries = _r(&extab_sec->sh_size) / extable_ent_size; in do_func()
180 for (i = 0; i < _r(&symtab_sec->sh_size) / sizeof(Elf_Sym); i++) { in do_func()
Drecordmcount.h194 uint_t const old_shstr_sh_size = _w(shstr->sh_size); in append_func()
196 uint_t t = 1 + strlen(mc_name) + _w(shstr->sh_size); in append_func()
199 shstr->sh_size = _w(t); in append_func()
224 mcsec.sh_size = _w((void *)mlocp - (void *)mloc0); in append_func()
238 mcsec.sh_size = _w((void *)mrelp - (void *)mrel0); in append_func()
319 unsigned const nrel = _w(relhdr->sh_size) / rel_entsize; in sift_rel_mcount()
365 unsigned const nrel = _w(relhdr->sh_size) / rel_entsize; in nop_mcount()
425 unsigned const nsym = _w(symhdr->sh_size) / _w(symhdr->sh_entsize); in find_secsym_ndx()
495 totrelsz += _w(shdrp->sh_size); in tot_relsize()
/linux-4.4.14/arch/sparc/kernel/
Dmodule.c73 for (i = 1; i < sechdrs[symidx].sh_size / sizeof(Elf_Sym); i++) { in module_frob_arch_sections()
94 for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rel); i++) { in apply_relocate_add()
198 sun4v_patch_1insn_range(p, p + sun4v_1insn->sh_size); in do_patch_sections()
202 sun4v_patch_2insn_range(p, p + sun4v_2insn->sh_size); in do_patch_sections()
/linux-4.4.14/arch/alpha/kernel/
Dmodule.c107 nsyms = symtab->sh_size / sizeof(Elf64_Sym); in module_frob_arch_sections()
116 got->sh_size = 0; in module_frob_arch_sections()
124 nrela = s->sh_size / sizeof(Elf64_Rela); in module_frob_arch_sections()
128 &got->sh_size); in module_frob_arch_sections()
150 unsigned long i, n = sechdrs[relsec].sh_size / sizeof(*rela); in apply_relocate_add()
/linux-4.4.14/arch/arc/kernel/
Dmodule.c77 n = sechdrs[relsec].sh_size / sizeof(*rel_entry); in apply_relocate_add()
140 sechdrs[unwsec].sh_size); in module_finalize()
/linux-4.4.14/arch/m68k/kernel/
Dmodule.c35 for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rel); i++) { in apply_relocate()
75 for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rel); i++) { in apply_relocate_add()
/linux-4.4.14/drivers/remoteproc/
Dremoteproc_elf_loader.c225 u32 size = shdr->sh_size;
302 *tablesz = shdr->sh_size;
328 return rproc_da_to_va(rproc, shdr->sh_addr, shdr->sh_size);
/linux-4.4.14/arch/mips/kernel/
Dvpe.c174 *size = ret + sechdr->sh_size; in get_offset()
438 for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rel); i++) { in apply_relocations()
485 unsigned int i, n = sechdrs[symindex].sh_size / sizeof(Elf_Sym); in simplify_symbols()
540 unsigned int i, n = sechdrs[symindex].sh_size / sizeof(Elf_Sym); in dump_elfsymbols()
555 unsigned int i, n = sechdrs[symindex].sh_size / sizeof(Elf_Sym); in find_vpe_symbols()
622 (len < sechdrs[i].sh_offset + sechdrs[i].sh_size)) { in vpe_elfload()
661 sechdrs[i].sh_size); in vpe_elfload()
Dmodule.c210 for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rel); i++) { in apply_relocate()
285 me->arch.dbe_end = (void *)s->sh_addr + s->sh_size; in module_finalize()
Dmodule-rela.c121 for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rel); i++) { in apply_relocate_add()
/linux-4.4.14/arch/avr32/kernel/
Dmodule.c84 module->arch.nsyms = symtab->sh_size / sizeof(Elf_Sym); in module_frob_arch_sections()
107 nrela = sechdrs[i].sh_size / sizeof(Elf32_Rela); in module_frob_arch_sections()
156 for (i = 0; i < relsec->sh_size / sizeof(Elf32_Rela); i++, rel++) { in apply_relocate_add()
/linux-4.4.14/kernel/
Dkexec_file.c729 ((sechdrs[i].sh_addr + sechdrs[i].sh_size) > in __kexec_load_purgatory()
752 buf_sz += sechdrs[i].sh_size; in __kexec_load_purgatory()
758 bss_sz += sechdrs[i].sh_size; in __kexec_load_purgatory()
801 memcpy(buf_addr + offset, src, sechdrs[i].sh_size); in __kexec_load_purgatory()
813 curr_load_addr += sechdrs[i].sh_size; in __kexec_load_purgatory()
817 bss_addr += sechdrs[i].sh_size; in __kexec_load_purgatory()
967 for (k = 0; k < sechdrs[i].sh_size/sizeof(Elf_Sym); k++) { in kexec_purgatory_find_symbol()
Dmodule.c400 *num = info->sechdrs[sec].sh_size / object_size; in section_objs()
647 if (!pcpusec->sh_size) in percpu_modalloc()
656 mod->percpu = __alloc_reserved_percpu(pcpusec->sh_size, align); in percpu_modalloc()
659 mod->name, (unsigned long)pcpusec->sh_size); in percpu_modalloc()
662 mod->percpu_size = pcpusec->sh_size; in percpu_modalloc()
730 if (info->sechdrs[info->index.pcpu].sh_size != 0) in percpu_modalloc()
1307 num_versions = sechdrs[versindex].sh_size in check_version()
1457 return !(sect->sh_flags & SHF_ALLOC) || sect->sh_size == 0; in sect_empty()
1623 nattr->size = info->sechdrs[i].sh_size; in add_notes_attrs()
2120 for (i = 1; i < symsec->sh_size / sizeof(Elf_Sym); i++) { in simplify_symbols()
[all …]
/linux-4.4.14/arch/mips/vdso/
Dgenvdso.h60 shdr->sh_entsize = shdr->sh_size; in FUNC()
153 st_count = FUNC(swap_uint)(shdr->sh_size) / st_entsize; in FUNC()
/linux-4.4.14/arch/parisc/kernel/
Dmodule.c333 unsigned long nrels = sechdrs[i].sh_size / sizeof(*rels); in module_frob_arch_sections()
558 for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rel); i++) { in apply_relocate_add()
694 for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rel); i++) { in apply_relocate_add()
841 end = table + sechdrs[me->arch.unwind_section].sh_size; in register_unwind_table()
916 nsyms = symhdr->sh_size / sizeof(Elf_Sym); in module_finalize()
933 symhdr->sh_size = nsyms * sizeof(Elf_Sym); in module_finalize()
/linux-4.4.14/arch/x86/entry/vdso/
Dvdso2c.h84 i < GET_LE(&symtab_hdr->sh_size) / GET_LE(&symtab_hdr->sh_entsize); in BITSFUNC()
167 (unsigned long)GET_LE(&alt_sec->sh_size)); in BITSFUNC()
/linux-4.4.14/arch/openrisc/kernel/
Dmodule.c34 for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rel); i++) { in apply_relocate_add()
/linux-4.4.14/arch/cris/kernel/
Dmodule.c57 for (i = 0; i < sechdrs[relsec].sh_size / sizeof (*rela); i++) { in apply_relocate_add()
/linux-4.4.14/arch/s390/kernel/
Dmodule.c130 me->arch.nsyms = symtab->sh_size / sizeof(Elf_Sym); in module_frob_arch_sections()
154 nrela = sechdrs[i].sh_size / sizeof(Elf_Rela); in module_frob_arch_sections()
413 n = sechdrs[relsec].sh_size / sizeof(Elf_Rela); in apply_relocate_add()
/linux-4.4.14/arch/h8300/kernel/
Dmodule.c19 for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rela); i++) { in apply_relocate_add()
/linux-4.4.14/include/uapi/linux/
Delf.h305 Elf32_Word sh_size; member
318 Elf64_Xword sh_size; /* Size of section in bytes */ member
/linux-4.4.14/arch/microblaze/kernel/
Dmodule.c37 for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rela); i++) { in apply_relocate_add()
/linux-4.4.14/arch/sh/kernel/
Dmodule.c52 for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rel); i++) { in apply_relocate_add()
Ddwarf.c1107 end = start + sechdrs[i].sh_size; in module_dwarf_finalize()
/linux-4.4.14/arch/nios2/kernel/
Dmodule.c54 for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rela); i++) { in apply_relocate_add()
/linux-4.4.14/samples/bpf/
Dbpf_load.c183 if (!*shname || !shdr->sh_size) in get_sec()
198 nrels = shdr->sh_size / shdr->sh_entsize; in parse_relo_and_apply()
/linux-4.4.14/arch/mn10300/kernel/
Dmodule.c72 for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rel); i++) { in apply_relocate_add()
/linux-4.4.14/arch/c6x/kernel/
Dmodule.c61 for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rel); i++) { in apply_relocate_add()
/linux-4.4.14/arch/arm64/kernel/
Dmodule.c220 for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rel); i++) { in apply_relocate_add()
421 apply_alternatives((void *)s->sh_addr, s->sh_size); in module_finalize()
/linux-4.4.14/lib/
Dbug.c102 mod->num_bugs = sechdrs[i].sh_size / sizeof(struct bug_entry); in module_bug_finalize()
/linux-4.4.14/arch/xtensa/kernel/
Dmodule.c65 for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rela); i++) { in apply_relocate_add()
/linux-4.4.14/arch/hexagon/kernel/
Dmodule.c88 unsigned int nrelocs = sechdrs[relsec].sh_size / sizeof(Elf32_Rela); in apply_relocate_add()
/linux-4.4.14/arch/tile/kernel/
Dmodule.c136 for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rel); i++) { in apply_relocate_add()
/linux-4.4.14/scripts/mod/
Dmodpost.c468 info->num_sections = TO_NATIVE(sechdrs[0].sh_size); in parse_elf()
487 sechdrs[i].sh_size = TO_NATIVE(sechdrs[i].sh_size); in parse_elf()
511 info->modinfo_len = sechdrs[i].sh_size; in parse_elf()
529 sechdrs[i].sh_offset + sechdrs[i].sh_size; in parse_elf()
541 sechdrs[i].sh_offset + sechdrs[i].sh_size; in parse_elf()
1788 Elf_Rela *stop = (void *)start + sechdr->sh_size; in section_rela()
1834 Elf_Rel *stop = (void *)start + sechdr->sh_size; in section_rel()
/linux-4.4.14/arch/m32r/kernel/
Dmodule.c90 for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rel); i++) { in apply_relocate_add()
/linux-4.4.14/arch/powerpc/oprofile/cell/
Dvma_map.c191 for (j = 0; j < shdr.sh_size / sizeof (sym); j++) { in create_vma_map()
/linux-4.4.14/tools/perf/util/
Dsymbol-elf.c163 (addr < (shdr.sh_addr + shdr.sh_size))) in elf_addr_to_index()
285 nr_rel_entries = shdr_rel_plt.sh_size / shdr_rel_plt.sh_entsize; in dso__synthesize_plt_symbols()
857 nr_syms = shdr.sh_size / shdr.sh_entsize; in dso__load_sym()
980 map->end = map->start + shdr.sh_size; in dso__load_sym()
1037 shdr.sh_size; in dso__load_sym()
/linux-4.4.14/arch/mips/boot/
Delf2ecoff.c211 s->sh_size = swab32(s->sh_size); in convert_elf_shdrs()
/linux-4.4.14/tools/lib/bpf/
Dlibbpf.c616 nrels = shdr->sh_size / shdr->sh_entsize; in bpf_program__collect_reloc()
/linux-4.4.14/fs/
Dbinfmt_elf_fdpic.c1509 shdr4extnum->sh_size = elf->e_shnum; in fill_extnum_info()
Dbinfmt_elf.c2112 shdr4extnum->sh_size = elf->e_shnum; in fill_extnum_info()