HomeSort by relevance Sort by last modified time
    Searched refs:shdr (Results 1 - 25 of 87) sorted by null

1 2 3 4

  /external/elfutils/libebl/
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);
eblsectionstripp.c 59 ebl_section_strip_p (Ebl *ebl, const GElf_Ehdr *ehdr, const GElf_Shdr *shdr,
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);
  /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...]
read_elf.h 9 char *ReadStringTable(Elf32_Ehdr *hdr, Elf32_Shdr *shdr, FILE *fobj);
11 Elf32_Shdr *shdr,
14 Elf32_Shdr *shdr,
16 int ReadSection(Elf32_Shdr *shdr, void *buffer, FILE *f);
  /external/elfutils/tests/
update4.c 51 Elf32_Shdr *shdr; local
130 shdr = elf32_getshdr (scn);
131 if (shdr == NULL)
139 shdr->sh_type = SHT_PROGBITS;
140 shdr->sh_flags = SHF_ALLOC | SHF_EXECINSTR;
141 shdr->sh_addr = 0;
142 shdr->sh_link = 0;
143 shdr->sh_info = 0;
144 shdr->sh_entsize = 1;
166 shdr = elf32_getshdr (scn)
    [all...]
asm-tst1.c 166 GElf_Shdr *shdr; local
176 shdr = gelf_getshdr (scn, &shdr_mem);
177 if (shdr == NULL)
185 if (strcmp (elf_strptr (elf, ehdr->e_shstrndx, shdr->sh_name),
189 elf_strptr (elf, ehdr->e_shstrndx, shdr->sh_name),
194 if (shdr->sh_type != (cnt == 3 ? SHT_STRTAB : SHT_PROGBITS))
200 if ((cnt == 1 && shdr->sh_flags != (SHF_ALLOC | SHF_EXECINSTR))
201 || (cnt == 2 && shdr->sh_flags != (SHF_ALLOC | SHF_WRITE))
202 || (cnt == 3 && shdr->sh_flags != 0))
208 if (shdr->sh_addr != 0
    [all...]
asm-tst2.c 182 GElf_Shdr *shdr; local
192 shdr = gelf_getshdr (scn, &shdr_mem);
193 if (shdr == NULL)
201 if (strcmp (elf_strptr (elf, ehdr->e_shstrndx, shdr->sh_name),
205 elf_strptr (elf, ehdr->e_shstrndx, shdr->sh_name),
210 if (shdr->sh_type != (cnt == 2 ? SHT_STRTAB : SHT_PROGBITS))
216 if ((cnt == 1 && shdr->sh_flags != (SHF_ALLOC | SHF_WRITE))
217 || (cnt == 2 && shdr->sh_flags != 0))
223 if (shdr->sh_addr != 0)
229 if ((cnt == 1 && shdr->sh_offset != ((sizeof (Elf32_Ehdr) + 15) & ~15)
    [all...]
sectiondump.c 90 GElf_Shdr *shdr; local
96 shdr = gelf_getshdr (scn, &shdr_mem);
97 if (ehdr == NULL || shdr == NULL)
111 elf_strptr (elf, ehdr->e_shstrndx, shdr->sh_name),
112 shdr->sh_type,
113 shdr->sh_flags,
114 shdr->sh_addr,
115 shdr->sh_offset,
116 shdr->sh_size,
117 shdr->sh_link
    [all...]
asm-tst9.c 216 GElf_Shdr *shdr; local
226 shdr = gelf_getshdr (scn, &shdr_mem);
227 if (shdr == NULL)
235 if (strcmp (elf_strptr (elf, ehdr->e_shstrndx, shdr->sh_name),
239 elf_strptr (elf, ehdr->e_shstrndx, shdr->sh_name),
244 if (shdr->sh_type != (cnt == 2 ? SHT_STRTAB : SHT_PROGBITS))
250 if ((cnt == 1 && shdr->sh_flags != (SHF_ALLOC | SHF_WRITE))
251 || (cnt == 2 && shdr->sh_flags != 0))
257 if (shdr->sh_addr != 0)
263 if ((cnt == 1 && shdr->sh_offset != ((sizeof (Elf32_Ehdr) + 15) & ~15)
    [all...]
update3.c 50 Elf32_Shdr *shdr; local
125 shdr = elf32_getshdr (scn);
126 if (shdr == NULL)
134 shdr->sh_type = SHT_STRTAB;
135 shdr->sh_flags = 0;
136 shdr->sh_addr = 0;
137 shdr->sh_link = SHN_UNDEF;
138 shdr->sh_info = SHN_UNDEF;
139 shdr->sh_addralign = 1;
140 shdr->sh_entsize = 0
    [all...]
  /external/elfutils/libelf/
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));
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));
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)
83 #define SH_INFO_LINK_P(Shdr) \
84 ((Shdr)->sh_type == SHT_REL || (Shdr)->sh_type == SHT_RELA \
85 || ((Shdr)->sh_flags & SHF_INFO_LINK) != 0)
elf32_getshdr.c 69 static ElfW2(LIBELFBITS,Shdr) *
72 ElfW2(LIBELFBITS,Shdr) *result;
79 result = scn->shdr.ELFW(e,LIBELFBITS);
86 size_t size = shnum * sizeof (ElfW2(LIBELFBITS,Shdr));
90 ElfW2(LIBELFBITS,Shdr) *shdr = elf->state.ELFW(elf,LIBELFBITS).shdr =
91 (ElfW2(LIBELFBITS,Shdr) *) malloc (size);
92 if (elf->state.ELFW(elf,LIBELFBITS).shdr == NULL)
101 ElfW2(LIBELFBITS,Shdr) *notcvt
    [all...]
elf32_updatenull.c 199 update_if_changed (scn0->shdr.ELFW(e,LIBELFBITS)->sh_size,
208 if (list->data[1].shdr.ELFW(e,LIBELFBITS) == NULL)
216 ElfW2(LIBELFBITS,Shdr) *shdr = scn->shdr.ELFW(e,LIBELFBITS);
219 assert (shdr != NULL);
220 ElfW2(LIBELFBITS,Word) sh_entsize = shdr->sh_entsize;
221 ElfW2(LIBELFBITS,Word) sh_align = shdr->sh_addralign ?: 1;
224 switch (shdr->sh_type)
267 update_if_changed (shdr->sh_entsize, sh_entsize
    [all...]
  /external/chromium_org/content/common/gpu/media/
h264_parser.cc 799 H264SliceHeader* shdr) {
802 if (!shdr->IsISlice() && !shdr->IsSISlice()) {
803 READ_BOOL_OR_RETURN(&shdr->ref_pic_list_modification_flag_l0);
804 if (shdr->ref_pic_list_modification_flag_l0) {
805 res = ParseRefPicListModification(shdr->num_ref_idx_l0_active_minus1,
806 shdr->ref_list_l0_modifications);
812 if (shdr->IsBSlice()) {
813 READ_BOOL_OR_RETURN(&shdr->ref_pic_list_modification_flag_l1);
814 if (shdr->ref_pic_list_modification_flag_l1)
    [all...]
  /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...]
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/elfutils/src/
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...]
elflint.c 105 GElf_Shdr *shdr, int idx);
322 GElf_Shdr *shdr; local
324 shdr = gelf_getshdr (elf_getscn (ebl->elf, idx), &shdr_mem);
326 return elf_strptr (ebl->elf, shstrndx, shdr->sh_name);
443 GElf_Shdr *shdr = gelf_getshdr (elf_getscn (ebl->elf, 0), &shdr_mem); local
444 if (shdr != NULL)
447 if (shdr->sh_size == 0)
451 shnum = shdr->sh_size;
460 GElf_Shdr *shdr = gelf_getshdr (elf_getscn (ebl->elf, 0), &shdr_mem); local
461 if (shdr != NULL && shdr->sh_link < shnum
526 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); local
2556 GElf_Shdr *shdr = NULL; local
2607 GElf_Shdr *shdr = gelf_getshdr (elf_getscn (ebl->elf, shndx), &shdr_mem); local
2654 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); local
2782 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); local
3376 GElf_Shdr *shdr = gelf_getshdr (elf_getscn (ebl->elf, 0), &shdr_mem); local
4095 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); local
    [all...]
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...]
  /external/elfutils/libdwfl/
dwfl_report_elf.c 90 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); local
91 if (unlikely (shdr == NULL))
94 if (shdr->sh_flags & SHF_ALLOC)
96 const GElf_Xword align = shdr->sh_addralign ?: 1;
98 if (shdr->sh_addr == 0
104 shdr->sh_addr = next;
108 start = base = shdr->sh_addr;
145 end = shdr->sh_addr + shdr->sh_size;
146 if (likely (shdr->sh_addr != 0
    [all...]
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...]
  /external/elfutils/backends/
alpha_symbol.c 84 const GElf_Shdr *shdr,
87 if ((shdr->sh_flags
89 && shdr->sh_addr != 0)
117 return pltgot == shdr->sh_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...]

Completed in 212 milliseconds

1 2 3 4