Searched refs:sh_size (Results 1 - 25 of 79) sorted by last modified time

1234

/linux-master/drivers/gpu/drm/nouveau/nvkm/subdev/gsp/
H A Dr535.c2158 *psize = shdr->sh_size;
/linux-master/tools/objtool/
H A Dcheck.c405 for (offset = 0; offset < sec->sh.sh_size; offset += insn->len) {
425 sec->sh.sh_size - offset,
450 if (func->offset == sec->sh.sh_size) {
572 unsigned int end = (sec->sh.sh_size > 10) ? sec->sh.sh_size - 10 : 0;
574 for (offset = sec->sh.sh_size - 1; offset >= end && !insn; offset--)
610 else if (offset == reloc->sym->sec->sh.sh_size) {
650 else if (offset == reloc->sym->sec->sh.sh_size) {
2242 if (sec->sh.sh_size % sizeof(struct unwind_hint)) {
2249 for (i = 0; i < sec->sh.sh_size / sizeo
[all...]
H A Dorc_gen.c116 orc_list_add(&orc_list, &null, sec, sec->sh.sh_size);
H A Dorc_dump.c92 orc_size = sh.sh_size;
/linux-master/scripts/mod/
H A Dmodpost.c476 * read count from .sh_size.
478 info->num_sections = TO_NATIVE(sechdrs[0].sh_size);
497 sechdrs[i].sh_size = TO_NATIVE(sechdrs[i].sh_size);
519 info->modinfo_len = sechdrs[i].sh_size;
530 sechdrs[i].sh_offset + sechdrs[i].sh_size;
542 sechdrs[i].sh_offset + sechdrs[i].sh_size;
1494 stop = start + sechdr->sh_size;
/linux-master/tools/lib/bpf/
H A Dlibbpf.c3672 if (hdr->sh_type == SHT_PROGBITS && hdr->sh_size == 0 &&
3876 (size_t)sh->sh_size);
4123 n = sh->sh_size / sh->sh_entsize;
4602 nrels = shdr->sh_size / shdr->sh_entsize;
7052 nrels = shdr->sh_size / shdr->sh_entsize;
9615 nrels = shdr->sh_size / shdr->sh_entsize;
H A Dlinker.c286 symtab->shdr->sh_size += sizeof(*sym);
376 sec->shdr->sh_size = sec->sec_sz = 0;
493 if (shdr->sh_type == SHT_PROGBITS && shdr->sh_size == 0 &&
656 obj->btf = btf__new(data->d_buf, shdr->sh_size);
666 obj->btf_ext = btf_ext__new(data->d_buf, shdr->sh_size);
738 if (sec->shdr->sh_size != sec->data->d_size) {
740 sec->sec_idx, (long long unsigned)sec->shdr->sh_size,
755 if (sec->shdr->sh_size % sizeof(struct bpf_insn) != 0) {
757 sec->sec_idx, (long long unsigned)sec->shdr->sh_size,
790 if (sec->shdr->sh_size
[all...]
/linux-master/fs/
H A Dbinfmt_elf_fdpic.c1435 shdr4extnum->sh_size = elf->e_shnum;
/linux-master/tools/objtool/include/objtool/
H A Delf.h196 return sec->sh.sh_size / sec->sh.sh_entsize;
/linux-master/arch/riscv/kernel/
H A Dalternative.c186 end = (void *)hdr + alt->sh_offset + alt->sh_size,
H A Delf_kexec.c388 for (i = 0; i < relsec->sh_size / sizeof(*relas); i++) {
/linux-master/arch/loongarch/kernel/
H A Dmodule.c440 for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rel); i++) {
534 apply_alternatives((void *)alt->sh_addr, (void *)alt->sh_addr + alt->sh_size);
537 unwind_module_init(mod, (void *)orc_ip->sh_addr, orc_ip->sh_size, (void *)orc->sh_addr, orc->sh_size);
/linux-master/arch/sparc/vdso/
H A Dvma.c80 *size = shdrs[i].sh_size;
148 *size = shdrs[i].sh_size;
/linux-master/tools/perf/util/
H A Dsymbol-elf.c191 (addr < (shdr.sh_addr + shdr.sh_size)))
550 di->nr_entries = rela_dyn_shdr.sh_size / rela_dyn_shdr.sh_entsize;
651 for (i = 0; i < shdr.sh_size; i += shdr.sh_entsize) {
724 plt_sym->end = plt_sym->start + shdr_plt.sh_size;
789 ri.nr_entries = shdr_rel_plt.sh_size / shdr_rel_plt.sh_entsize;
798 if (ri.nr_entries * plt_entry_size == shdr_plt.sh_size)
1379 offs = shdr.sh_offset + shdr.sh_size;
1447 map__set_end(map, map__start(map) + shdr->sh_size);
1519 map__set_end(curr_map, map__start(curr_map) + shdr->sh_size);
1585 dso->text_end = tshdr.sh_offset + tshdr.sh_size;
[all...]
/linux-master/kernel/module/
H A Dmain.c211 /* Section 0 has sh_addr 0 and sh_size 0. */
212 *num = info->sechdrs[sec].sh_size / object_size;
240 /* Section 0 has sh_addr 0 and sh_size 0. */
241 *num = info->sechdrs[sec].sh_size / object_size;
380 if (!pcpusec->sh_size)
389 mod->percpu = __alloc_reserved_percpu(pcpusec->sh_size, align);
392 mod->name, (unsigned long)pcpusec->sh_size);
395 mod->percpu_size = pcpusec->sh_size;
473 if (info->sechdrs[info->index.pcpu].sh_size != 0)
1037 unsigned long size = infosec->sh_size;
[all...]
H A Dinternal.h354 return !(sect->sh_flags & SHF_ALLOC) || sect->sh_size == 0;
/linux-master/kernel/
H A Dkexec_file.c851 kbuf->bufsz += sechdrs[i].sh_size;
856 bss_sz += sechdrs[i].sh_size;
925 bss_addr += sechdrs[i].sh_size;
944 + sechdrs[i].sh_size) &&
952 memcpy(dst, src, sechdrs[i].sh_size);
956 offset += sechdrs[i].sh_size;
1098 for (k = 0; k < sechdrs[i].sh_size/sizeof(Elf_Sym); k++) {
/linux-master/include/uapi/linux/
H A Delf.h314 Elf32_Word sh_size; member in struct:elf32_shdr
327 Elf64_Xword sh_size; /* Size of section in bytes */ member in struct:elf64_shdr
/linux-master/arch/x86/kernel/
H A Dmachine_kexec_64.c406 for (i = 0; i < relsec->sh_size / sizeof(*rel); i++) {
/linux-master/arch/s390/kernel/
H A Dmachine_kexec_file.c327 for (i = 0; i < relsec->sh_size / sizeof(*relas); i++) {
/linux-master/arch/arm64/kernel/pi/
H A Drelacheck.c106 numrela = swab_elfxword(shdr[i].sh_size) / sizeof(*rela);
/linux-master/arch/arm64/kernel/
H A Dmodule.c358 for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rel); i++) {
593 apply_alternatives_module((void *)s->sh_addr, s->sh_size);
598 __pi_scs_patch((void *)s->sh_addr, s->sh_size);
/linux-master/tools/bpf/resolve_btfids/
H A Dmain.c435 n = sh.sh_size / sh.sh_entsize;
/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++) {

Completed in 460 milliseconds

1234