/external/elfutils/0.153/libebl/ |
H A D | ebl_check_special_section.c | 58 ebl_check_special_section (ebl, ndx, shdr, sname) 61 const GElf_Shdr *shdr; 64 return ebl != NULL && ebl->check_special_section (ebl, ndx, shdr, sname);
|
H A D | eblsectionstripp.c | 59 ebl_section_strip_p (Ebl *ebl, const GElf_Ehdr *ehdr, const GElf_Shdr *shdr, argument 70 if (shdr->sh_type == SHT_RELA || shdr->sh_type == SHT_REL) 72 Elf_Scn *scn_l = elf_getscn (ebl->elf, (shdr)->sh_info); 87 return SECTION_STRIP_P (shdr, name, remove_comment);
|
/external/elfutils/0.153/libelf/ |
H A D | gelf_getshdr.c | 82 Elf32_Shdr *shdr local 83 = scn->shdr.e32 ?: __elf32_getshdr_rdlock (scn); 85 if (shdr == NULL) 92 dst->name = shdr->name 108 Elf64_Shdr *shdr local 109 = scn->shdr.e64 ?: __elf64_getshdr_rdlock (scn); 111 if (shdr == NULL) 118 result = memcpy (dst, shdr, sizeof (GElf_Shdr));
|
H A D | gelf_update_shdr.c | 75 Elf32_Shdr *shdr local 76 = scn->shdr.e32 ?: __elf32_getshdr_wrlock (scn); 78 if (shdr == NULL) 96 shdr->name = src->name 110 Elf64_Shdr *shdr local 111 = scn->shdr.e64 ?: __elf64_getshdr_wrlock (scn); 113 if (shdr == NULL) 120 (void) memcpy (shdr, src, sizeof (GElf_Shdr));
|
H A D | elf-knowledge.h | 58 #define SECTION_STRIP_P(shdr, name, remove_comment) \ 60 (((shdr)->sh_flags & SHF_ALLOC) == 0 \ 62 && (shdr)->sh_type != SHT_NOTE \ 63 && (((shdr)->sh_type) != SHT_PROGBITS \ 71 && (shdr)->sh_type < SHT_NUM)
|
H A D | elf32_getshdr.c | 79 result = scn->shdr.ELFW(e,LIBELFBITS); 90 ElfW2(LIBELFBITS,Shdr) *shdr = elf->state.ELFW(elf,LIBELFBITS).shdr = 92 if (elf->state.ELFW(elf,LIBELFBITS).shdr == NULL) 117 memcpy (shdr, file_shdr, size); 137 CONVERT_TO (shdr[cnt].sh_name, notcvt[cnt].sh_name); 138 CONVERT_TO (shdr[cnt].sh_type, notcvt[cnt].sh_type); 139 CONVERT_TO (shdr[cnt].sh_flags, notcvt[cnt].sh_flags); 140 CONVERT_TO (shdr[cnt].sh_addr, notcvt[cnt].sh_addr); 141 CONVERT_TO (shdr[cn [all...] |
H A D | elf32_updatenull.c | 203 update_if_changed (scn0->shdr.ELFW(e,LIBELFBITS)->sh_size, 212 if (list->data[1].shdr.ELFW(e,LIBELFBITS) == NULL) 220 ElfW2(LIBELFBITS,Shdr) *shdr = scn->shdr.ELFW(e,LIBELFBITS); 223 assert (shdr != NULL); 224 ElfW2(LIBELFBITS,Word) sh_entsize = shdr->sh_entsize; 225 ElfW2(LIBELFBITS,Word) sh_align = shdr->sh_addralign ?: 1; 228 switch (shdr->sh_type) 271 update_if_changed (shdr->sh_entsize, sh_entsize, 313 > shdr [all...] |
H A D | elf32_checksum.c | 121 GElf_Shdr *shdr; local 125 shdr = INTUSE(gelf_getshdr) (scn, &shdr_mem); 126 if (shdr == NULL) 133 if (SECTION_STRIP_P (shdr, 134 INTUSE(elf_strptr) (elf, shstrndx, shdr->sh_name), 140 if (shdr->sh_type == SHT_NOBITS)
|
H A D | nlist.c | 88 GElf_Shdr *shdr = NULL; local 117 shdr = INTUSE(gelf_getshdr) (scn, &shdr_mem); 118 if (shdr == NULL) 122 if (shdr->sh_type == SHT_SYMTAB) 129 if (shdr->sh_type == SHT_DYNSYM) 140 shdr = INTUSE(gelf_getshdr) (symscn, &shdr_mem); 149 nsyms = (shdr->sh_size 172 mem.str = INTUSE(elf_strptr) (elf, shdr->sh_link, sym->st_name);
|
/external/chromium_org/media/filters/ |
H A D | h264_parser.cc | 986 H264SliceHeader* shdr) { 989 if (!shdr->IsISlice() && !shdr->IsSISlice()) { 990 READ_BOOL_OR_RETURN(&shdr->ref_pic_list_modification_flag_l0); 991 if (shdr->ref_pic_list_modification_flag_l0) { 992 res = ParseRefPicListModification(shdr->num_ref_idx_l0_active_minus1, 993 shdr->ref_list_l0_modifications); 999 if (shdr->IsBSlice()) { 1000 READ_BOOL_OR_RETURN(&shdr->ref_pic_list_modification_flag_l1); 1001 if (shdr 985 ParseRefPicListModifications( H264SliceHeader* shdr) argument 1057 ParsePredWeightTable(const H264SPS& sps, H264SliceHeader* shdr) argument 1087 ParseDecRefPicMarking(H264SliceHeader* shdr) argument 1132 ParseSliceHeader(const H264NALU& nalu, H264SliceHeader* shdr) argument [all...] |
/external/elfutils/0.153/libasm/ |
H A D | 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 [all...] |
H A D | asm_newscn_ingrp.c | 68 GElf_Shdr *shdr = gelf_getshdr (result->data.main.scn, &shdr_mem); local 70 assert (shdr != NULL); 71 shdr->sh_flags |= SHF_GROUP; 73 (void) gelf_update_shdr (result->data.main.scn, shdr);
|
/external/libunwind/src/ |
H A D | elfxx.c | 67 Debug (1, "string shdr table outside of image? (%lu > %lu)\n", 97 Elf_W (Shdr) *shdr; 105 shdr = elf_w (section_table) (ei); 106 if (!shdr) 111 switch (shdr->sh_type) 115 symtab = (Elf_W (Sym) *) ((char *) ei->image + shdr->sh_offset); 116 symtab_end = (Elf_W (Sym) *) ((char *) symtab + shdr->sh_size); 117 syment_size = shdr->sh_entsize; 119 strtab = elf_w (string_table) (ei, shdr->sh_link); 124 (long) shdr [all...] |
/external/elfutils/0.153/src/ |
H A D | 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; 394 adjust_relocs (Elf_Scn *outscn, Elf_Scn *inscn, const GElf_Shdr *shdr, 406 switch (shdr->sh_type) 409 for (size_t i = 0; i < shdr->sh_size / shdr->sh_entsize; ++i) 420 for (size_t i = 0; i < shdr 321 section_can_shrink(const GElf_Shdr *shdr) argument 352 GElf_Shdr *shdr = gelf_getshdr (elf_getscn (elf, i), &shdr_mem); local 393 adjust_relocs(Elf_Scn *outscn, Elf_Scn *inscn, const GElf_Shdr *shdr, size_t map[], const GElf_Shdr *symshdr) argument 540 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); local 557 GElf_Shdr *shdr = gelf_getshdr (symscn, &shdr_mem); local 653 GElf_Shdr shdr; member in struct:section 790 GElf_Shdr *shdr = gelf_getshdr (elf_getscn (outelf, s->shndx), local 870 sections_match(const struct section *sections, size_t i, const GElf_Shdr *shdr, const char *name) argument 882 find_alloc_section(const GElf_Shdr *shdr, GElf_Addr bias, const char *name, struct section sections[], size_t nalloc) argument 911 get_section_name(size_t ndx, const GElf_Shdr *shdr, const Elf_Data *shstrtab) argument 1002 } shdr; local 1059 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); local 1185 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); local 1207 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); local 1249 GElf_Shdr *shdr = gelf_getshdr (scn, §ions[i].shdr); local 1276 find_unalloc_section(const GElf_Shdr *shdr, const char *name) argument 1309 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); local 1430 GElf_Shdr *shdr = gelf_getshdr (unstripped_symtab, &shdr_mem); local 1483 GElf_Shdr *shdr = gelf_getshdr (sec->outscn, &shdr_mem); local 1590 GElf_Shdr *shdr = gelf_getshdr (unstripped_symtab, &shdr_mem); local 1779 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); local [all...] |
H A D | elflint.c | 105 GElf_Shdr *shdr, int idx); 321 GElf_Shdr *shdr; local 323 shdr = gelf_getshdr (elf_getscn (ebl->elf, idx), &shdr_mem); 325 return elf_strptr (ebl->elf, shstrndx, shdr->sh_name); 444 GElf_Shdr *shdr = gelf_getshdr (elf_getscn (ebl->elf, 0), &shdr_mem); local 445 if (shdr != NULL) 448 if (shdr->sh_size == 0) 452 shnum = shdr->sh_size; 461 GElf_Shdr *shdr = gelf_getshdr (elf_getscn (ebl->elf, 0), &shdr_mem); local 462 if (shdr ! 475 GElf_Shdr *shdr = gelf_getshdr (elf_getscn (ebl->elf, 0), &shdr_mem); local 545 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); local 582 check_symtab(Ebl *ebl, GElf_Ehdr *ehdr, GElf_Shdr *shdr, int idx) argument 1024 is_rel_dyn(Ebl *ebl, const GElf_Ehdr *ehdr, int idx, const GElf_Shdr *shdr, bool is_rela) argument 1186 check_reloc_shdr(Ebl *ebl, const GElf_Ehdr *ehdr, const GElf_Shdr *shdr, int idx, int reltype, GElf_Shdr **destshdrp, GElf_Shdr *destshdr_memp, struct loaded_segment **loadedp) argument 1428 check_rela(Ebl *ebl, GElf_Ehdr *ehdr, GElf_Shdr *shdr, int idx) argument 1478 check_rel(Ebl *ebl, GElf_Ehdr *ehdr, GElf_Shdr *shdr, int idx) argument 1532 check_dynamic(Ebl *ebl, GElf_Ehdr *ehdr, GElf_Shdr *shdr, int idx) argument 1855 check_symtab_shndx(Ebl *ebl, GElf_Ehdr *ehdr, GElf_Shdr *shdr, int idx) argument 1936 check_sysv_hash(Ebl *ebl, GElf_Shdr *shdr, Elf_Data *data, int idx, GElf_Shdr *symshdr) argument 1977 check_sysv_hash64(Ebl *ebl, GElf_Shdr *shdr, Elf_Data *data, int idx, GElf_Shdr *symshdr) argument 2018 check_gnu_hash(Ebl *ebl, GElf_Shdr *shdr, Elf_Data *data, int idx, GElf_Shdr *symshdr) argument 2160 check_hash(int tag, Ebl *ebl, GElf_Ehdr *ehdr, GElf_Shdr *shdr, int idx) argument 2361 check_null(Ebl *ebl, GElf_Shdr *shdr, int idx) argument 2381 check_group(Ebl *ebl, GElf_Ehdr *ehdr, GElf_Shdr *shdr, int idx) argument 2581 GElf_Shdr *shdr = NULL; local 2632 GElf_Shdr *shdr = gelf_getshdr (elf_getscn (ebl->elf, shndx), &shdr_mem); local 2679 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); local 2807 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); local 2830 check_verneed(Ebl *ebl, GElf_Shdr *shdr, int idx) argument 2959 check_verdef(Ebl *ebl, GElf_Shdr *shdr, int idx) argument 3138 check_attributes(Ebl *ebl, GElf_Ehdr *ehdr, GElf_Shdr *shdr, int idx) argument 3408 GElf_Shdr *shdr = gelf_getshdr (elf_getscn (ebl->elf, 0), &shdr_mem); local 4042 check_note_section(Ebl *ebl, GElf_Ehdr *ehdr, GElf_Shdr *shdr, int idx) argument 4145 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); local 4232 GElf_Shdr *shdr = NULL; local [all...] |
H A D | strip.c | 417 GElf_Shdr shdr; member in struct:shdr_info 422 Elf32_Word old_sh_link; /* Original value of shdr.sh_link. */ 601 if (gelf_getshdr (scn, &shdr_info[cnt].shdr) == NULL) 606 shdr_info[cnt].shdr.sh_name); 616 /* Remember the shdr.sh_link value. */ 617 shdr_info[cnt].old_sh_link = shdr_info[cnt].shdr.sh_link; 623 || (shdr_info[cnt].shdr.sh_flags & SHF_ALLOC) == 0) 624 shdr_info[cnt].shdr.sh_offset = 0; 628 if (unlikely (shdr_info[cnt].shdr.sh_type == SHT_SYMTAB_SHNDX)) 630 assert (shdr_info[shdr_info[cnt].shdr 1355 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); local 1619 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); local 1643 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); local [all...] |
H A D | objdump.c | 369 show_relocs_x (Ebl *ebl, GElf_Shdr *shdr, Elf_Data *symdata, argument 400 if (shdr == NULL) 425 show_relocs_rel (Ebl *ebl, GElf_Shdr *shdr, Elf_Data *data, argument 429 int nentries = shdr->sh_size / shdr->sh_entsize; 438 show_relocs_x (ebl, shdr, symdata, xndxdata, symstrndx, shstrndx, 445 show_relocs_rela (Ebl *ebl, GElf_Shdr *shdr, Elf_Data *data, argument 449 int nentries = shdr->sh_size / shdr->sh_entsize; 458 show_relocs_x (ebl, shdr, symdat 465 section_match(Elf *elf, uint32_t scnndx, GElf_Shdr *shdr, size_t shstrndx) argument 503 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); local 574 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); local 711 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); local [all...] |
H A D | findtextrel.c | 272 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); local 274 if (shdr == NULL) 282 switch (shdr->sh_type) 291 for (size_t cnt = 0; cnt < shdr->sh_size / shdr->sh_entsize; 406 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); local 408 if (shdr == NULL) 417 if ((shdr->sh_type == SHT_REL || shdr->sh_type == SHT_RELA) 420 symscn = elf_getscn (elf, shdr 542 GElf_Shdr *shdr = gelf_getshdr (symscn, &shdr_mem); local [all...] |
/external/elfutils/0.153/libdwfl/ |
H A D | dwfl_report_elf.c | 92 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); local 93 if (unlikely (shdr == NULL)) 96 if (shdr->sh_flags & SHF_ALLOC) 98 const GElf_Xword align = shdr->sh_addralign ?: 1; 100 if (shdr->sh_addr == 0 106 shdr->sh_addr = next; 110 start = base = shdr->sh_addr; 147 end = shdr->sh_addr + shdr->sh_size; 148 if (likely (shdr [all...] |
H A D | derelocate.c | 112 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); local 113 if (shdr == NULL) 116 if ((shdr->sh_flags & SHF_ALLOC) && shdr->sh_addr == 0 122 &shdr->sh_addr) != DWFL_E_NOERROR) 124 shdr = gelf_getshdr (scn, &shdr_mem); 125 if (unlikely (shdr == NULL)) 129 if (shdr->sh_flags & SHF_ALLOC) 132 shdr->sh_name); 140 newref->start = dwfl_adjusted_address (mod, shdr 204 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); local [all...] |
/external/chromium_org/third_party/libvpx/source/libvpx/build/make/ |
H A D | obj_int_extract.c | 342 Elf32_Shdr shdr; local 344 if (parse_elf_section(elf, s_idx, &shdr, NULL)) { 350 return (char *)(elf->buf + shdr.sh_offset + idx); 352 Elf64_Shdr shdr; local 354 if (parse_elf_section(elf, s_idx, NULL, &shdr)) { 360 return (char *)(elf->buf + shdr.sh_offset + idx); 403 Elf32_Shdr shdr; local 405 parse_elf_section(&elf, i, &shdr, NULL); 407 if (shdr.sh_type == SHT_STRTAB) { 410 strcpy(strtsb_name, (char *)(elf.buf + shdr 420 Elf64_Shdr shdr; local 440 Elf32_Shdr shdr; local 529 Elf64_Shdr shdr; local [all...] |
/external/libvpx/libvpx/build/make/ |
H A D | obj_int_extract.c | 342 Elf32_Shdr shdr; local 344 if (parse_elf_section(elf, s_idx, &shdr, NULL)) { 350 return (char *)(elf->buf + shdr.sh_offset + idx); 352 Elf64_Shdr shdr; local 354 if (parse_elf_section(elf, s_idx, NULL, &shdr)) { 360 return (char *)(elf->buf + shdr.sh_offset + idx); 403 Elf32_Shdr shdr; local 405 parse_elf_section(&elf, i, &shdr, NULL); 407 if (shdr.sh_type == SHT_STRTAB) { 410 strcpy(strtsb_name, (char *)(elf.buf + shdr 420 Elf64_Shdr shdr; local 440 Elf32_Shdr shdr; local 529 Elf64_Shdr shdr; local [all...] |
/external/elfutils/0.153/backends/ |
H A D | alpha_symbol.c | 85 const GElf_Shdr *shdr, 88 if ((shdr->sh_flags 90 && shdr->sh_addr != 0) 118 return pltgot == shdr->sh_addr; 83 alpha_check_special_section(Ebl *ebl, int ndx __attribute__ ((unused)), const GElf_Shdr *shdr, const char *sname __attribute__ ((unused))) argument
|
/external/ltrace/ |
H A D | ltrace-elf.c | 116 elf_loaddata(Elf_Scn *scn, GElf_Shdr *shdr) argument 120 || data->d_off || data->d_size != shdr->sh_size) 133 GElf_Shdr shdr; local 136 if (scn == NULL || gelf_getshdr(scn, &shdr) == NULL) { 140 if (predicate(scn, &shdr, data)) { 142 *tgt_shdr = shdr; 152 inside_p(Elf_Scn *scn, GElf_Shdr *shdr, void *data) argument 155 return addr >= shdr->sh_addr 156 && addr < shdr->sh_addr + shdr 168 type_p(Elf_Scn *scn, GElf_Shdr *shdr, void *data) argument 188 name_p(Elf_Scn *scn, GElf_Shdr *shdr, void *d) argument 430 read_symbol_table(struct ltelf *lte, const char *filename, Elf_Scn *scn, GElf_Shdr *shdr, const char *name, Elf_Data **datap, size_t *countp, const char **strsp) argument 472 GElf_Shdr shdr; local 497 elf_read_relocs(struct ltelf *lte, Elf_Scn *scn, GElf_Shdr *shdr, struct vect *rela_vec) argument 541 GElf_Shdr shdr; local 582 GElf_Shdr shdr; local 674 GElf_Shdr shdr; local 926 GElf_Shdr shdr; local [all...] |
/external/valgrind/main/VEX/switchback/ |
H A D | linker.c | 399 Elf_Shdr* shdr = (Elf_Shdr*)(ehdrC + ehdr->e_shoff); 400 char* sh_strtab = ehdrC + shdr[ehdr->e_shstrndx].sh_offset; 405 if (shdr[i].sh_type == sh_type 410 && 0 != memcmp(".stabstr", sh_strtab + shdr[i].sh_name, 8) 412 ptr = ehdrC + shdr[i].sh_offset; 516 Elf_Shdr* shdr, int shnum, 522 Elf_Rel* rtab = (Elf_Rel*) (ehdrC + shdr[shnum].sh_offset); 523 int nent = shdr[shnum].sh_size / sizeof(Elf_Rel); 524 int target_shndx = shdr[shnum].sh_info; 525 int symtab_shndx = shdr[shnu [all...] |