Searched refs:shnum (Results 1 - 7 of 7) sorted by relevance

/linux-master/arch/s390/tools/
H A Drelocs.c42 static unsigned long shnum; variable
146 shnum = ehdr.e_shnum;
162 if (shnum == SHN_UNDEF || shstrndx == SHN_XINDEX) {
171 if (shnum == SHN_UNDEF)
172 shnum = elf_xword_to_cpu(shdr.sh_size);
178 if (shstrndx >= shnum)
187 secs = calloc(shnum, sizeof(struct section));
189 die("Unable to allocate %ld section headers\n", shnum);
194 for (i = 0; i < shnum; i++) {
199 i, shnum, strerro
[all...]
/linux-master/arch/x86/tools/
H A Drelocs.c15 static unsigned long shnum; variable
259 if (shndx < shnum) {
287 for (i = 0; i < shnum; i++) {
399 shnum = ehdr.e_shnum;
416 if (shnum == SHN_UNDEF || shstrndx == SHN_XINDEX) {
425 if (shnum == SHN_UNDEF)
426 shnum = elf_xword_to_cpu(shdr.sh_size);
432 if (shstrndx >= shnum)
441 secs = calloc(shnum, sizeof(struct section));
444 shnum);
[all...]
/linux-master/scripts/
H A Dsorttable.h284 unsigned int shnum; local
302 shnum = r2(&ehdr->e_shnum);
303 if (shnum == SHN_UNDEF)
304 shnum = _r(&shdr[0].sh_size);
306 for (i = 0, s = shdr; s < shdr + shnum; i++, s++) {
/linux-master/drivers/remoteproc/
H A Dremoteproc_coredump.c356 int shnum; local
376 shnum = 2;
386 shnum++;
407 elf_hdr_set_e_shnum(class, ehdr, shnum);
H A Dremoteproc_elf_loader.c258 u16 shnum = elf_hdr_get_e_shnum(class, ehdr); local
270 for (i = 0; i < shnum; i++, shdr += elf_shdr_get_size) {
H A Dpru_rproc.c876 u16 shnum = ehdr->e_shnum; local
887 for (i = 0; i < shnum; i++, shdr++) {
/linux-master/kernel/module/
H A Dkallsyms.c79 unsigned int shnum, unsigned int pcpundx)
85 src->st_shndx >= shnum ||
78 is_core_symbol(const Elf_Sym *src, const Elf_Shdr *sechdrs, unsigned int shnum, unsigned int pcpundx) argument

Completed in 125 milliseconds