Searched refs:sh_size (Results 1 - 25 of 79) sorted by relevance

1234

/linux-master/arch/x86/kernel/
H A Dmodule.c104 for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rel); i++) {
150 for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rel); i++) {
311 rsize = retpolines->sh_size;
316 csize = cfi->sh_size;
323 apply_retpolines(rseg, rseg + retpolines->sh_size);
327 apply_returns(rseg, rseg + returns->sh_size);
332 apply_alternatives(aseg, aseg + alt->sh_size);
339 cs.call_end = (void *)calls->sh_addr + calls->sh_size;
344 cs.alt_end = (void *)alt->sh_addr + alt->sh_size;
351 apply_seal_endbr(iseg, iseg + ibt_endbr->sh_size);
[all...]
/linux-master/arch/powerpc/kernel/
H A Dmodule.c51 (void *)sect->sh_addr + sect->sh_size);
57 (void *)sect->sh_addr + sect->sh_size);
64 (void *)sect->sh_addr + sect->sh_size);
71 me->arch.end_opd = sect->sh_addr + sect->sh_size;
80 (void *)sect->sh_addr + sect->sh_size);
87 (void *)sect->sh_addr + sect->sh_size);
H A Dmodule_32.c98 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 Dmodule_64.c220 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/kernel/module/
H A Ddebug_kmemleak.c28 info->sechdrs[i].sh_size, GFP_KERNEL);
H A Dversion.c32 num_versions = sechdrs[versindex].sh_size
H A Dlivepatch.c41 size = info->sechdrs[info->hdr->e_shstrndx].sh_size;
/linux-master/arch/mips/boot/tools/
H A Drelocs.c284 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 Drelocs.c297 nsyms = sec->shdr.sh_size/sizeof(Elf_Sym);
426 shnum = elf_xword_to_cpu(shdr.sh_size);
460 sec->shdr.sh_size = elf_xword_to_cpu(shdr.sh_size);
479 sec->strtab = malloc(sec->shdr.sh_size);
482 sec->shdr.sh_size);
488 if (fread(sec->strtab, 1, sec->shdr.sh_size, fp)
489 != sec->shdr.sh_size) {
506 sec->xsymtab = malloc(sec->shdr.sh_size);
509 sec->shdr.sh_size);
[all...]
/linux-master/arch/s390/tools/
H A Drelocs.c172 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 Dmodule.c95 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 Dmodule-sections.c139 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 Dmodule-plts.c83 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 Dmodule.c119 for (i = 0; i < relsec->sh_size / sizeof(Elf32_Rel); i++, rel++) {
133 if (offset < 0 || offset > (symsec->sh_size / sizeof(Elf32_Sym))) {
142 if (rel->r_offset < 0 || rel->r_offset > dstsec->sh_size - sizeof(u32)) {
145 rel->r_offset, dstsec->sh_size);
483 s->sh_size,
485 txt_sec->sh_size);
498 fixup_pv_table((void *)s->sh_addr, s->sh_size);
503 fixup_smp((void *)s->sh_addr, s->sh_size);
/linux-master/arch/m68k/kernel/
H A Dmodule.c35 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 Drecordmcount.h214 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 Dsorttable.h304 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/openrisc/kernel/
H A Dmodule.c30 for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rel); i++) {
/linux-master/arch/riscv/kernel/
H A Dmodule-sections.c125 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/sparc/kernel/
H A Dmodule.c74 for (i = 1; i < sechdrs[symidx].sh_size / sizeof(Elf_Sym); i++) {
95 for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rel); i++) {
199 sun4v_patch_1insn_range(p, p + sun4v_1insn->sh_size);
203 sun4v_patch_2insn_range(p, p + sun4v_2insn->sh_size);
/linux-master/arch/x86/entry/vdso/
H A Dvdso2c.h33 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/drivers/remoteproc/
H A Dremoteproc_elf_loader.c376 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 Dgenvdso.h51 shdr->sh_entsize = shdr->sh_size;
98 st_count = FUNC(swap_uint)(shdr->sh_size) / st_entsize;
/linux-master/arch/arc/kernel/
H A Dmodule.c64 n = sechdrs[relsec].sh_size / sizeof(*rel_entry);
141 sechdrs[unwsec].sh_size);
/linux-master/tools/objtool/
H A Dspecial.c155 if (sec->sh.sh_size % entry->size != 0) {
161 nr_entries = sec->sh.sh_size / entry->size;

Completed in 231 milliseconds

1234