Searched refs:shnum (Results 1 – 8 of 8) sorted by relevance
| /linux/arch/s390/tools/ |
| H A D | relocs.c | 42 static unsigned long shnum; variable 146 shnum = ehdr.e_shnum; in read_ehdr() 162 if (shnum == SHN_UNDEF || shstrndx == SHN_XINDEX) { in read_ehdr() 171 if (shnum == SHN_UNDEF) in read_ehdr() 172 shnum = elf_xword_to_cpu(shdr.sh_size); in read_ehdr() 178 if (shstrndx >= shnum) in read_ehdr() 187 secs = calloc(shnum, sizeof(struct section)); in read_shdrs() 189 die("Unable to allocate %ld section headers\n", shnum); in read_shdrs() 194 for (i = 0; i < shnum; i++) { in read_shdrs() 199 i, shnum, strerror(errno)); in read_shdrs() [all …]
|
| /linux/arch/x86/tools/ |
| H A D | relocs.c | 15 static unsigned long shnum; variable 267 if (shndx < shnum) in sec_name() 374 shnum = ehdr.e_shnum; in read_ehdr() 391 if (shnum == SHN_UNDEF || shstrndx == SHN_XINDEX) { in read_ehdr() 400 if (shnum == SHN_UNDEF) in read_ehdr() 401 shnum = elf_xword_to_cpu(shdr.sh_size); in read_ehdr() 407 if (shstrndx >= shnum) in read_ehdr() 416 secs = calloc(shnum, sizeof(struct section)); in read_shdrs() 418 die("Unable to allocate %ld section headers\n", shnum); in read_shdrs() 423 for (i = 0; i < shnum; i++) { in read_shdrs() [all …]
|
| /linux/scripts/ |
| H A D | tracepoint-update.c | 158 unsigned int shnum; in process_tracepoints() local 173 shnum = ehdr_shnum(ehdr); in process_tracepoints() 174 if (shnum == SHN_UNDEF) in process_tracepoints() 175 shnum = shdr_size(shdr_start); in process_tracepoints() 177 for (int i = 0; done && i < shnum; i++) { in process_tracepoints()
|
| H A D | sorttable.c | 364 unsigned int shnum; in fill_relocs() local 372 shnum = ehdr_shnum(ehdr); in fill_relocs() 373 if (shnum == SHN_UNDEF) in fill_relocs() 374 shnum = shdr_size(shdr_start); in fill_relocs() 376 for (int i = 0; i < shnum; i++) { in fill_relocs() 421 unsigned int shnum; in replace_relocs() local 427 shnum = ehdr_shnum(ehdr); in replace_relocs() 428 if (shnum == SHN_UNDEF) in replace_relocs() 429 shnum = shdr_size(shdr_start); in replace_relocs() 431 for (int i = 0; i < shnum; i++) { in replace_relocs() [all …]
|
| H A D | elf-parse.h | 93 EHDR_HALF(shnum) in EHDR_HALF()
|
| /linux/drivers/remoteproc/ |
| H A D | remoteproc_coredump.c | 356 int shnum; in rproc_coredump_using_sections() local 376 shnum = 2; in rproc_coredump_using_sections() 386 shnum++; in rproc_coredump_using_sections() 407 elf_hdr_set_e_shnum(class, ehdr, shnum); in rproc_coredump_using_sections()
|
| H A D | remoteproc_elf_loader.c | 258 u16 shnum = elf_hdr_get_e_shnum(class, ehdr); local 270 for (i = 0; i < shnum; i++, shdr += elf_shdr_get_size) {
|
| /linux/kernel/module/ |
| H A D | kallsyms.c | 79 unsigned int shnum, unsigned int pcpundx) in is_core_symbol() argument 85 src->st_shndx >= shnum || in is_core_symbol()
|