Searched refs:shdr (Results 1 – 6 of 6) sorted by relevance
/arch/mips/boot/tools/ |
D | relocs.c | 25 Elf_Shdr shdr; member 98 name = sec_strtab + secs[shndx].shdr.sh_name; in sec_name() 263 Elf_Shdr shdr; in read_shdrs() local 276 if (fread(&shdr, sizeof(shdr), 1, fp) != 1) in read_shdrs() 279 sec->shdr.sh_name = elf_word_to_cpu(shdr.sh_name); in read_shdrs() 280 sec->shdr.sh_type = elf_word_to_cpu(shdr.sh_type); in read_shdrs() 281 sec->shdr.sh_flags = elf_xword_to_cpu(shdr.sh_flags); in read_shdrs() 282 sec->shdr.sh_addr = elf_addr_to_cpu(shdr.sh_addr); in read_shdrs() 283 sec->shdr.sh_offset = elf_off_to_cpu(shdr.sh_offset); in read_shdrs() 284 sec->shdr.sh_size = elf_xword_to_cpu(shdr.sh_size); in read_shdrs() [all …]
|
/arch/mips/vdso/ |
D | genvdso.h | 15 ELF(Shdr) *shdr; in FUNC() 25 shdr = shdrs + (sh_entsize * swap_uint16(ehdr->e_shstrndx)); in FUNC() 26 shstrtab = vdso + FUNC(swap_uint)(shdr->sh_offset); in FUNC() 29 shdr = shdrs + (i * sh_entsize); in FUNC() 30 name = shstrtab + swap_uint32(shdr->sh_name); in FUNC() 37 switch (swap_uint32(shdr->sh_type)) { in FUNC() 45 dyn = vdso + FUNC(swap_uint)(shdr->sh_offset); in FUNC() 59 shdr->sh_type = swap_uint32(SHT_MIPS_ABIFLAGS); in FUNC() 60 shdr->sh_entsize = shdr->sh_size; in FUNC() 117 ELF(Shdr) *shdr; in FUNC() [all …]
|
/arch/x86/tools/ |
D | relocs.c | 30 Elf_Shdr shdr; member 245 name = sec_strtab + secs[shndx].shdr.sh_name; in sec_name() 279 if (sec->shdr.sh_type != SHT_SYMTAB) in sym_lookup() 282 nsyms = sec->shdr.sh_size/sizeof(Elf_Sym); in sym_lookup() 393 Elf_Shdr shdr; in read_shdrs() local 406 if (fread(&shdr, sizeof shdr, 1, fp) != 1) in read_shdrs() 409 sec->shdr.sh_name = elf_word_to_cpu(shdr.sh_name); in read_shdrs() 410 sec->shdr.sh_type = elf_word_to_cpu(shdr.sh_type); in read_shdrs() 411 sec->shdr.sh_flags = elf_xword_to_cpu(shdr.sh_flags); in read_shdrs() 412 sec->shdr.sh_addr = elf_addr_to_cpu(shdr.sh_addr); in read_shdrs() [all …]
|
/arch/powerpc/boot/ |
D | hack-coff.c | 39 struct external_scnhdr shdr; in main() local 61 if (read(fd, &shdr, sizeof(shdr)) != sizeof(shdr)) in main() 63 if (strcmp(shdr.s_name, ".text") == 0) { in main() 66 } else if (strcmp(shdr.s_name, ".data") == 0) { in main() 68 } else if (strcmp(shdr.s_name, ".bss") == 0) { in main()
|
/arch/powerpc/kernel/ |
D | kexec_elf_64.c | 285 static bool elf_is_shdr_sane(const struct elf_shdr *shdr, size_t buf_len) in elf_is_shdr_sane() argument 290 if (shdr->sh_type == SHT_NULL) in elf_is_shdr_sane() 294 switch (shdr->sh_type) { in elf_is_shdr_sane() 296 size_ok = shdr->sh_entsize == sizeof(Elf_Sym); in elf_is_shdr_sane() 299 size_ok = shdr->sh_entsize == sizeof(Elf_Rela); in elf_is_shdr_sane() 302 size_ok = shdr->sh_entsize == sizeof(Elf_Dyn); in elf_is_shdr_sane() 305 size_ok = shdr->sh_entsize == sizeof(Elf_Rel); in elf_is_shdr_sane() 325 } else if (shdr->sh_addr + shdr->sh_size < shdr->sh_addr) { in elf_is_shdr_sane() 330 if (shdr->sh_type != SHT_NOBITS) { in elf_is_shdr_sane() 331 if (shdr->sh_offset + shdr->sh_size < shdr->sh_offset) { in elf_is_shdr_sane() [all …]
|
/arch/powerpc/oprofile/cell/ |
D | vma_map.c | 118 Elf32_Shdr shdr, shdr_str; in create_vma_map() local 175 if (copy_from_user(&shdr, shdr_start + i, sizeof(shdr))) in create_vma_map() 178 if (shdr.sh_type != SHT_SYMTAB) in create_vma_map() 180 if (shdr.sh_entsize != sizeof (sym)) in create_vma_map() 184 shdr_start + shdr.sh_link, in create_vma_map() 185 sizeof(shdr))) in create_vma_map() 191 for (j = 0; j < shdr.sh_size / sizeof (sym); j++) { in create_vma_map() 193 shdr.sh_offset + in create_vma_map()
|