HomeSort by relevance Sort by last modified time
    Searched defs:shdr (Results 26 - 50 of 57) sorted by null

12 3

  /sdk/emulator/qtools/
read_elf.cpp 51 void SwapSectionHeader(Elf32_Shdr *shdr)
53 shdr->sh_name = SwapWord(shdr->sh_name);
54 shdr->sh_type = SwapWord(shdr->sh_type);
55 shdr->sh_flags = SwapWord(shdr->sh_flags);
56 shdr->sh_addr = SwapAddr(shdr->sh_addr);
57 shdr->sh_offset = SwapOff(shdr->sh_offset)
136 Elf32_Shdr *shdr = new Elf32_Shdr[hdr->e_shnum]; local
158 Elf32_Shdr *shdr = shdr_table + hdr->e_shstrndx; local
    [all...]
  /external/elfutils/libdwfl/
derelocate.c 109 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); local
110 if (shdr == NULL)
113 if ((shdr->sh_flags & SHF_ALLOC) && shdr->sh_addr == 0)
118 &shdr->sh_addr) != DWFL_E_NOERROR)
120 shdr = gelf_getshdr (scn, &shdr_mem);
121 if (unlikely (shdr == NULL))
125 if (shdr->sh_flags & SHF_ALLOC)
128 shdr->sh_name);
136 newref->start = shdr->sh_addr + mod->main.bias
200 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); local
    [all...]
dwfl_module_getdwarf.c 155 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); local
156 if (shdr == NULL)
159 const char *name = elf_strptr (elf, shstrndx, shdr->sh_name);
236 GElf_Shdr shdr_mem, *shdr = gelf_getshdr (scn, &shdr_mem); local
237 if (shdr != NULL)
238 switch (shdr->sh_type)
244 *strshndx = shdr->sh_link;
245 *syments = shdr->sh_size / shdr->sh_entsize;
256 *strshndx = shdr->sh_link
    [all...]
relocate.c 137 GElf_Shdr shdr_mem, *shdr = gelf_getshdr (scn, &shdr_mem); local
138 if (shdr != NULL)
139 switch (shdr->sh_type)
146 cache->strtabndx = shdr->sh_link;
285 Elf_Scn *scn, GElf_Shdr *shdr,
454 size_t nrels = shdr->sh_size / shdr->sh_entsize;
456 if (shdr->sh_type == SHT_REL)
529 if (shdr->sh_type == SHT_REL)
556 shdr->sh_size = reldata->d_size = nrels * shdr->sh_entsize
588 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); local
    [all...]
  /system/core/libcorkscrew/
symbol_table.c 88 Elf32_Shdr *shdr = (Elf32_Shdr*)(base + hdr->e_shoff); local
94 if (shdr[i].sh_type == SHT_SYMTAB) {
97 if (shdr[i].sh_type == SHT_DYNSYM) {
115 dynsyms = (Elf32_Sym*)(base + shdr[dynsym_idx].sh_offset);
116 dynnumsyms = shdr[dynsym_idx].sh_size / shdr[dynsym_idx].sh_entsize;
117 int dynstr_idx = shdr[dynsym_idx].sh_link;
118 dynstr = base + shdr[dynstr_idx].sh_offset;
125 syms = (Elf32_Sym*)(base + shdr[sym_idx].sh_offset);
126 numsyms = shdr[sym_idx].sh_size / shdr[sym_idx].sh_entsize
    [all...]
  /development/tools/elftree/
elftree.c 172 static int dump_dynamic(struct file_state *f, Elf_Scn *scn, GElf_Shdr *shdr)
185 d.count = shdr->sh_size / shdr->sh_entsize;
208 GElf_Shdr shdr; local
238 scn = find_scn(&f, SHT_STRTAB, NULL, &shdr);
246 while ((scn = find_scn(&f, SHT_DYNAMIC, scn, &shdr))) {
247 dump_dynamic(&f, scn, &shdr);
  /external/elfutils/libasm/
asm_end.c 76 GElf_Shdr *shdr; local
142 shdr = gelf_getshdr (strscn, &shdr_mem);
143 if (strtabdata == NULL || shdr == NULL)
152 shdr->sh_type = SHT_STRTAB;
153 assert (shdr->sh_entsize == 0);
155 (void) gelf_update_shdr (strscn, shdr);
160 shdr = gelf_getshdr (symscn, &shdr_mem);
161 if (data == NULL || shdr == NULL)
225 shdr = gelf_getshdr (xndxscn, &shdr_mem);
226 if (xndxdata == NULL || shdr == NULL
    [all...]
  /external/elfutils/src/
addr2line.c 400 GElf_Shdr *shdr = gelf_getshdr local
403 if (unlikely (shdr == NULL))
406 if (addr >= shdr->sh_size)
412 addr += shdr->sh_addr + shdr_bias;
findtextrel.c 267 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); local
269 if (shdr == NULL)
277 if (shdr->sh_type == SHT_DYNAMIC)
281 for (size_t cnt = 0; cnt < shdr->sh_size / shdr->sh_entsize;
301 else if (shdr->sh_type == SHT_SYMTAB)
390 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); local
392 if (shdr == NULL)
401 if ((shdr->sh_type == SHT_REL || shdr->sh_type == SHT_RELA
526 GElf_Shdr *shdr = gelf_getshdr (symscn, &shdr_mem); local
    [all...]
strings.c 725 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); local
729 if (shdr != NULL && shdr->sh_type != SHT_NOBITS
730 && (shdr->sh_flags & SHF_ALLOC) != 0)
731 result |= read_block (fd, fname, fdlen, shdr->sh_offset,
732 shdr->sh_offset + shdr->sh_size);
objdump.c 361 show_relocs_rel (Ebl *ebl, GElf_Shdr *shdr, Elf_Data *data,
366 int nentries = shdr->sh_size / shdr->sh_entsize;
409 if (shdr == NULL)
434 show_relocs_rela (Ebl *ebl, GElf_Shdr *shdr, Elf_Data *data,
439 int nentries = shdr->sh_size / shdr->sh_entsize;
482 if (shdr == NULL)
511 section_match (Elf *elf, uint32_t scnndx, GElf_Shdr *shdr, size_t shstrndx)
523 elf_strptr (elf, shstrndx, shdr->sh_name)) == 0
549 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); local
620 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); local
736 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); local
    [all...]
size.c 425 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); local
427 if (shdr == NULL)
431 if ((shdr->sh_flags & SHF_ALLOC) != 0)
434 shdr->sh_name)));
458 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); local
461 if ((shdr->sh_flags & SHF_ALLOC) != 0)
464 maxlen, elf_strptr (elf, shstrndx, shdr->sh_name),
465 digits - 2, shdr->sh_size,
466 digits, shdr->sh_addr);
468 total += shdr->sh_size
509 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); local
556 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); local
    [all...]
elfcmp.c 597 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); local
598 if (shdr == NULL)
603 if ((shdr->sh_type != SHT_REL && shdr->sh_type != SHT_RELA)
604 || shdr->sh_link != scnndx)
613 if (shdr->sh_type == SHT_REL)
614 for (int ndx = 0; ndx < (int) (shdr->sh_size / shdr->sh_entsize);
628 for (int ndx = 0; ndx < (int) (shdr->sh_size / shdr->sh_entsize)
    [all...]
i386_ld.c 88 XElf_Shdr *shdr = &SCNINFO_SHDR (runp->shdr); local
97 reltgtdata = elf_getdata (file->scninfo[shdr->sh_info].scn, NULL);
101 insymdata = elf_getdata (file->scninfo[shdr->sh_link].scn, NULL);
108 maxcnt = shdr->sh_size / shdr->sh_entsize;
176 rel->r_offset += file->scninfo[shdr->sh_info].offset;
200 XElf_Shdr_vardef (shdr);
203 xelf_getshdr (scn, shdr);
204 assert (shdr != NULL)
538 XElf_Shdr *shdr = &SCNINFO_SHDR (scninfo->shdr); local
724 Elf32_Shdr *shdr = elf32_getshdr (pltscn); local
    [all...]
nm.c 995 GElf_Shdr *shdr, const char *prefix, const char *fname,
1005 size_t size = shdr->sh_size;
1007 size_t entsize = shdr->sh_entsize;
1013 fullname, elf_strptr (ebl->elf, shstrndx, shdr->sh_name));
1017 fullname, elf_strptr (ebl->elf, shstrndx, shdr->sh_name));
1081 const char *symstr = elf_strptr (ebl->elf, shdr->sh_link,
1177 sort_by_name_strtab = elf_getdata (elf_getscn (ebl->elf, shdr->sh_link),
1188 show_symbols_sysv (ebl, shdr->sh_link, prefix, fname,
1194 show_symbols_bsd (ebl->elf, shdr->sh_link, prefix, fname, fullname,
1201 show_symbols_posix (ebl->elf, shdr->sh_link, prefix, fullname, sym_mem
1274 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); local
    [all...]
strip.c 391 GElf_Shdr shdr; member in struct:shdr_info
396 Elf32_Word old_sh_link; /* Original value of shdr.sh_link. */
573 if (gelf_getshdr (scn, &shdr_info[cnt].shdr) == NULL)
578 shdr_info[cnt].shdr.sh_name);
588 /* Remember the shdr.sh_link value. */
589 shdr_info[cnt].old_sh_link = shdr_info[cnt].shdr.sh_link;
595 || (shdr_info[cnt].shdr.sh_flags & SHF_ALLOC) == 0)
596 shdr_info[cnt].shdr.sh_offset = 0;
600 if (unlikely (shdr_info[cnt].shdr.sh_type == SHT_SYMTAB_SHNDX))
602 assert (shdr_info[shdr_info[cnt].shdr.sh_link].symtab_idx == 0)
1301 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); local
1565 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); local
    [all...]
unstrip.c 322 section_can_shrink (const GElf_Shdr *shdr)
324 switch (shdr->sh_type)
353 GElf_Shdr *shdr = gelf_getshdr (elf_getscn (elf, i), &shdr_mem);
354 ELF_CHECK (shdr != NULL, _("cannot get section header: %s"));
362 sym->st_value = shdr->sh_addr;
388 adjust_relocs (Elf_Scn *outscn, Elf_Scn *inscn, const GElf_Shdr *shdr,
400 switch (shdr->sh_type)
403 for (size_t i = 0; i < shdr->sh_size / shdr->sh_entsize; ++i)
414 for (size_t i = 0; i < shdr->sh_size / shdr->sh_entsize; ++i
352 GElf_Shdr *shdr = gelf_getshdr (elf_getscn (elf, i), &shdr_mem); local
535 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); local
552 GElf_Shdr *shdr = gelf_getshdr (symscn, &shdr_mem); local
650 GElf_Shdr shdr; member in struct:section
787 GElf_Shdr *shdr = gelf_getshdr (elf_getscn (outelf, s->shndx), local
999 } shdr; local
1056 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); local
1182 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); local
1204 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); local
1243 GElf_Shdr *shdr = gelf_getshdr (scn, &sections[i].shdr); local
1304 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); local
1426 GElf_Shdr *shdr = gelf_getshdr (unstripped_symtab, &shdr_mem); local
1479 GElf_Shdr *shdr = gelf_getshdr (sec->outscn, &shdr_mem); local
1587 GElf_Shdr *shdr = gelf_getshdr (unstripped_symtab, &shdr_mem); local
1777 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); local
    [all...]
  /external/grub/stage2/
boot.c 657 Elf32_Shdr *shdr = NULL; local
676 shdr = (Elf32_Shdr *) mbi.syms.e.addr;
685 if (shdr[i].sh_addr != 0)
689 if (shdr[i].sh_size == 0)
693 cur_addr = ((cur_addr + shdr[i].sh_addralign) &
694 - (int) shdr[i].sh_addralign);
696 grub_seek (shdr[i].sh_offset);
698 sec_size = shdr[i].sh_size;
709 shdr[i].sh_addr = cur_addr;
  /external/libvpx/libvpx/build/make/
obj_int_extract.c 326 Elf32_Shdr shdr; local
328 if (parse_elf_section(elf, s_idx, &shdr, NULL)) {
334 return (char *)(elf->buf + shdr.sh_offset + idx);
336 Elf64_Shdr shdr; local
338 if (parse_elf_section(elf, s_idx, NULL, &shdr)) {
344 return (char *)(elf->buf + shdr.sh_offset + idx);
387 Elf32_Shdr shdr; local
389 parse_elf_section(&elf, i, &shdr, NULL);
391 if (shdr.sh_type == SHT_STRTAB) {
394 strcpy(strtsb_name, (char *)(elf.buf + shdr.sh_offset + shdr.sh_name))
404 Elf64_Shdr shdr; local
424 Elf32_Shdr shdr; local
506 Elf64_Shdr shdr; local
    [all...]
  /frameworks/compile/mclinker/lib/LD/
ELFObjectWriter.cpp 194 typedef typename ELFSizeTraits<SIZE>::Shdr ElfXX_Shdr;
295 typedef typename ELFSizeTraits<SIZE>::Shdr ElfXX_Shdr;
302 ElfXX_Shdr* shdr = (ElfXX_Shdr*)region->start(); local
309 shdr[sectIdx].sh_name = shstridx;
310 shdr[sectIdx].sh_type = ld_sect->type();
311 shdr[sectIdx].sh_flags = ld_sect->flag();
312 shdr[sectIdx].sh_addr = ld_sect->addr();
313 shdr[sectIdx].sh_offset = ld_sect->offset();
314 shdr[sectIdx].sh_size = ld_sect->size();
315 shdr[sectIdx].sh_addralign = ld_sect->align()
    [all...]
  /external/llvm/lib/ExecutionEngine/RuntimeDyld/
RuntimeDyldELF.cpp 130 Elf_Shdr *shdr = const_cast<Elf_Shdr*>( local
135 shdr->sh_addr = static_cast<addr_type>(Addr);
    [all...]
  /external/elfutils/libelf/
libelfP.h 246 } shdr; member in struct:Elf_Scn
329 int shdr_malloced; /* Nonzero if shdr array was allocated. */
333 void *shdr; member in struct:Elf::__anon18183::__anon18184
350 int shdr_malloced; /* Nonzero if shdr array was allocated. */
354 Elf32_Shdr *shdr; /* Used when reading from a file. */ member in struct:Elf::__anon18183::__anon18185
376 int shdr_malloced; /* Nonzero if shdr array was allocated. */
380 Elf64_Shdr *shdr; /* Used when reading from a file. */ member in struct:Elf::__anon18183::__anon18186
  /external/valgrind/main/VEX/unused/
linker.c 331 Elf_Shdr* shdr = (Elf_Shdr*)(ehdrC + ehdr->e_shoff); local
332 char* sh_strtab = ehdrC + shdr[ehdr->e_shstrndx].sh_offset;
337 if (shdr[i].sh_type == sh_type
342 && 0 != memcmp(".stabstr", sh_strtab + shdr[i].sh_name, 8)
344 ptr = ehdrC + shdr[i].sh_offset;
420 Elf_Shdr* shdr, int shnum,
426 Elf_Rel* rtab = (Elf_Rel*) (ehdrC + shdr[shnum].sh_offset);
427 int nent = shdr[shnum].sh_size / sizeof(Elf_Rel);
428 int target_shndx = shdr[shnum].sh_info;
429 int symtab_shndx = shdr[shnum].sh_link
715 Elf_Shdr* shdr = (Elf_Shdr*) (ehdrC + ehdr->e_shoff); local
769 Elf_Shdr* shdr; local
959 Elf_Shdr* shdr = (Elf_Shdr*) (ehdrC + ehdr->e_shoff); local
    [all...]
  /external/linux-tools-perf/util/
symbol.c 821 static inline const char *elf_sec__name(const GElf_Shdr *shdr,
824 return secstrs->d_buf + shdr->sh_name;
827 static inline int elf_sec__is_text(const GElf_Shdr *shdr,
830 return strstr(elf_sec__name(shdr, secstrs), "text") != NULL;
833 static inline bool elf_sec__is_data(const GElf_Shdr *shdr,
836 return strstr(elf_sec__name(shdr, secstrs), "data") != NULL;
1034 static bool elf_sec__is_a(GElf_Shdr *shdr, Elf_Data *secstrs,
1039 return elf_sec__is_text(shdr, secstrs);
1041 return elf_sec__is_data(shdr, secstrs);
1050 GElf_Shdr shdr; local
1078 GElf_Shdr shdr, opdshdr; local
1339 GElf_Shdr shdr; local
    [all...]
  /external/nist-sip/java/gov/nist/javax/sip/header/
HeaderFactoryImpl.java 1228 SIPHeader shdr = smp.parseSIPHeader(headers); local
    [all...]

Completed in 2807 milliseconds

12 3