Searched refs:e_shnum (Results 1 - 25 of 64) sorted by relevance

123

/linux-master/kernel/module/
H A Ddebug_kmemleak.c20 for (i = 1; i < info->hdr->e_shnum; i++) {
H A Dlivepatch.c33 size = sizeof(*info->sechdrs) * info->hdr->e_shnum;
H A Dstrict_rwx.c90 for (i = 0; i < hdr->e_shnum; i++) {
H A Dsysfs.c80 for (i = 0; i < info->hdr->e_shnum; i++)
97 for (i = 0; i < info->hdr->e_shnum; i++) {
184 for (i = 0; i < info->hdr->e_shnum; i++)
199 for (loaded = i = 0; i < info->hdr->e_shnum; ++i) {
H A Dkallsyms.c134 is_core_symbol(src + i, info->sechdrs, info->hdr->e_shnum,
206 is_core_symbol(src + i, info->sechdrs, info->hdr->e_shnum,
233 for (i = 0; i < info->hdr->e_shnum; i++) {
/linux-master/arch/mips/boot/tools/
H A Drelocs.c97 if (shndx < ehdr.e_shnum)
112 for (i = 0; i < ehdr.e_shnum; i++)
235 ehdr.e_shnum = elf_half_to_cpu(ehdr.e_shnum);
256 if (ehdr.e_shstrndx >= ehdr.e_shnum)
265 secs = calloc(ehdr.e_shnum, sizeof(struct section));
267 die("Unable to allocate %d section headers\n", ehdr.e_shnum);
272 for (i = 0; i < ehdr.e_shnum; i++) {
278 i, ehdr.e_shnum, strerror(errno));
289 if (sec->shdr.sh_link < ehdr.e_shnum)
[all...]
/linux-master/arch/powerpc/boot/
H A Delf.h68 Elf32_Half e_shnum; member in struct:elf32_hdr
85 Elf64_Half e_shnum; member in struct:elf64_hdr
/linux-master/arch/arm64/include/asm/
H A Dmodule.h60 for (s = sechdrs, se = sechdrs + hdr->e_shnum; s < se; s++) {
/linux-master/arch/mips/vdso/
H A Dgenvdso.h16 sh_count = swap_uint16(ehdr->e_shnum);
70 sh_count = swap_uint16(ehdr->e_shnum);
/linux-master/kernel/
H A Dcfi.c59 for (i = 1; i < hdr->e_shnum; i++) {
H A Dkexec_elf.c68 } else if (ehdr->e_shnum > 0 &&
97 if (ehdr->e_shoff > 0 && ehdr->e_shnum > 0) {
101 * e_shnum is at most 65536 so calculating
104 shdr_size = sizeof(struct elf_shdr) * ehdr->e_shnum;
157 ehdr->e_shnum = elf16_to_cpu(ehdr, buf_ehdr->e_shnum);
H A Dkexec_file.c842 for (i = 0; i < pi->ehdr->e_shnum; i++) {
903 sechdrs_size = array_size(sizeof(Elf_Shdr), pi->ehdr->e_shnum);
914 for (i = 0; i < pi->ehdr->e_shnum; i++) {
970 for (i = 0; i < pi->ehdr->e_shnum; i++) {
987 if (relsec->sh_info >= pi->ehdr->e_shnum ||
988 relsec->sh_link >= pi->ehdr->e_shnum)
1001 if (symtab->sh_link >= pi->ehdr->e_shnum)
1087 for (i = 0; i < ehdr->e_shnum; i++) {
1091 if (sechdrs[i].sh_link >= ehdr->e_shnum)
1106 syms[k].st_shndx >= ehdr->e_shnum) {
[all...]
/linux-master/scripts/
H A Dinsert-sys-cert.c74 if (hdr->e_shnum == SHN_UNDEF)
77 num_sections = hdr->e_shnum;
190 if (hdr->e_shnum == SHN_UNDEF)
193 num_sections = hdr->e_shnum;
H A Drecordmcount.h213 if (shdr0 && !ehdr->e_shnum)
216 return w2(ehdr->e_shnum);
222 ehdr->e_shnum = 0;
225 ehdr->e_shnum = w2(new_shnum);
/linux-master/arch/hexagon/kernel/
H A Dmodule.c35 for (i = 0; i < hdr->e_shnum; i++) {
/linux-master/arch/riscv/include/asm/
H A Dmodule.h122 for (s = sechdrs, se = sechdrs + hdr->e_shnum; s < se; s++) {
/linux-master/arch/arm64/kernel/pi/
H A Drelacheck.c77 for (int i = 0; i < swab_elfhword(ehdr->e_shnum); i++) {
/linux-master/arch/mips/kernel/
H A Dvpe.c196 for (i = 0; i < hdr->e_shnum; i++)
200 for (i = 0; i < hdr->e_shnum; ++i) {
604 if (len < hdr->e_shoff + hdr->e_shnum * sizeof(Elf_Shdr)) {
619 for (i = 1; i < hdr->e_shnum; i++) {
650 for (i = 0; i < hdr->e_shnum; i++) {
671 hdr->e_shnum, &mod);
674 for (i = 1; i < hdr->e_shnum; i++) {
679 if (info >= hdr->e_shnum)
711 for (i = 0; i < hdr->e_shnum; i++) {
/linux-master/arch/riscv/kernel/
H A Dmodule-sections.c100 for (i = 0; i < ehdr->e_shnum; i++) {
123 for (i = 0; i < ehdr->e_shnum; i++) {
/linux-master/arch/sparc/kernel/
H A Dmodule.c66 if (symidx == hdr->e_shnum-1) {
190 for (s = sechdrs; s < sechdrs + hdr->e_shnum; s++) {
/linux-master/arch/loongarch/kernel/
H A Dmodule-sections.c113 for (i = 0; i < ehdr->e_shnum; i++) {
138 for (i = 0; i < ehdr->e_shnum; i++) {
/linux-master/arch/s390/tools/
H A Drelocs.c143 ehdr.e_shnum = elf_half_to_cpu(ehdr.e_shnum);
146 shnum = ehdr.e_shnum;
/linux-master/arch/sparc/vdso/
H A Dvdso2c.h65 for (i = 0; i < GET_BE(&hdr->e_shnum); i++) {
/linux-master/drivers/remoteproc/
H A Dremoteproc_elf_helpers.h59 ELF_GEN_FIELD_GET_SET(hdr, e_shnum, u16)
/linux-master/arch/powerpc/kernel/
H A Dmodule.c30 for (i = 1; i < hdr->e_shnum; i++)

Completed in 228 milliseconds

123