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

1 2 3 4

  /sdk/emulator/qtools/
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);
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/libelf/
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_updatefile.c 80 if ((*scna)->shdr.ELFW(e,LIBELFBITS)->sh_offset
81 < (*scnb)->shdr.ELFW(e,LIBELFBITS)->sh_offset)
84 if ((*scna)->shdr.ELFW(e,LIBELFBITS)->sh_offset
85 > (*scnb)->shdr.ELFW(e,LIBELFBITS)->sh_offset)
88 if ((*scna)->shdr.ELFW(e,LIBELFBITS)->sh_size
89 < (*scnb)->shdr.ELFW(e,LIBELFBITS)->sh_size)
92 if ((*scna)->shdr.ELFW(e,LIBELFBITS)->sh_size
93 > (*scnb)->shdr.ELFW(e,LIBELFBITS)->sh_size)
227 #define shdr_dest ((ElfW2(LIBELFBITS,Shdr) *) shdr_start)
240 && scn->shdr.ELFW(e,LIBELFBITS) != &shdr_dest[scn->index]
    [all...]
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_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/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...]
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-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...]
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...]
asm-tst3.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 != scntypes[cnt])
216 if ((cnt == 1 && shdr->sh_flags != (SHF_ALLOC | SHF_WRITE))
217 || (cnt != 1 && shdr->sh_flags != 0))
223 if (shdr->sh_addr != 0)
233 if (shdr->sh_link != 2
    [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...]
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...]
readelf.c 212 static void handle_relocs_rel (Ebl *ebl, Elf_Scn *scn, GElf_Shdr *shdr);
213 static void handle_relocs_rela (Ebl *ebl, Elf_Scn *scn, GElf_Shdr *shdr);
215 static void handle_symtab (Ebl *ebl, Elf_Scn *scn, GElf_Shdr *shdr);
217 static void handle_verneed (Ebl *ebl, Elf_Scn *scn, GElf_Shdr *shdr);
218 static void handle_verdef (Ebl *ebl, Elf_Scn *scn, GElf_Shdr *shdr);
220 GElf_Shdr *shdr);
767 GElf_Shdr *shdr = gelf_getshdr (elf_getscn (ebl->elf, 0), &shdr_mem); local
768 if (shdr != NULL)
770 (uint32_t) shdr->sh_size);
779 GElf_Shdr *shdr = gelf_getshdr (elf_getscn (ebl->elf, 0), &shdr_mem) local
853 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); local
1002 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); local
1162 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); local
1421 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); local
1441 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); local
1747 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); local
2000 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); local
2709 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); local
2743 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); local
2805 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); local
5305 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); local
6165 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); local
    [all...]
  /system/core/libcorkscrew/
symbol_table.c 81 Elf32_Shdr *shdr = (Elf32_Shdr*)(base + hdr->e_shoff); local
87 if (shdr[i].sh_type == SHT_SYMTAB) {
90 if (shdr[i].sh_type == SHT_DYNSYM) {
108 dynsyms = (Elf32_Sym*)(base + shdr[dynsym_idx].sh_offset);
109 dynnumsyms = shdr[dynsym_idx].sh_size / shdr[dynsym_idx].sh_entsize;
110 int dynstr_idx = shdr[dynsym_idx].sh_link;
111 dynstr = base + shdr[dynstr_idx].sh_offset;
118 syms = (Elf32_Sym*)(base + shdr[sym_idx].sh_offset);
119 numsyms = shdr[sym_idx].sh_size / shdr[sym_idx].sh_entsize
    [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_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...]
  /external/libvpx/libvpx/build/make/
obj_int_extract.c 354 Elf32_Shdr shdr; local
356 if (parse_elf_section(elf, s_idx, &shdr, NULL))
363 return (char *)(elf->buf + shdr.sh_offset + idx);
367 Elf64_Shdr shdr; local
369 if (parse_elf_section(elf, s_idx, NULL, &shdr))
376 return (char *)(elf->buf + shdr.sh_offset + idx);
425 Elf32_Shdr shdr; local
428 parse_elf_section(&elf, i, &shdr, NULL);
430 if (shdr.sh_type == SHT_STRTAB)
434 strcpy(strtsb_name, (char *)(elf.buf + shdr.sh_offset + shdr.sh_name))
447 Elf64_Shdr shdr; local
471 Elf32_Shdr shdr; local
563 Elf64_Shdr shdr; local
    [all...]
  /external/valgrind/main/VEX/switchback/
linker.c 397 Elf_Shdr* shdr = (Elf_Shdr*)(ehdrC + ehdr->e_shoff);
398 char* sh_strtab = ehdrC + shdr[ehdr->e_shstrndx].sh_offset;
403 if (shdr[i].sh_type == sh_type
408 && 0 != memcmp(".stabstr", sh_strtab + shdr[i].sh_name, 8)
410 ptr = ehdrC + shdr[i].sh_offset;
514 Elf_Shdr* shdr, int shnum,
520 Elf_Rel* rtab = (Elf_Rel*) (ehdrC + shdr[shnum].sh_offset);
521 int nent = shdr[shnum].sh_size / sizeof(Elf_Rel);
522 int target_shndx = shdr[shnum].sh_info;
523 int symtab_shndx = shdr[shnum].sh_link
    [all...]
  /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...]

Completed in 695 milliseconds

1 2 3 4