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

1 2 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...]
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 39 Elf32_Shdr *shdr; local
118 shdr = elf32_getshdr (scn);
119 if (shdr == NULL)
127 shdr->sh_type = SHT_PROGBITS;
128 shdr->sh_flags = SHF_ALLOC | SHF_EXECINSTR;
129 shdr->sh_addr = 0;
130 shdr->sh_link = 0;
131 shdr->sh_info = 0;
132 shdr->sh_entsize = 1;
154 shdr = elf32_getshdr (scn)
    [all...]
asm-tst1.c 143 GElf_Shdr *shdr; local
153 shdr = gelf_getshdr (scn, &shdr_mem);
154 if (shdr == NULL)
162 if (strcmp (elf_strptr (elf, ehdr->e_shstrndx, shdr->sh_name),
166 elf_strptr (elf, ehdr->e_shstrndx, shdr->sh_name),
171 if (shdr->sh_type != (cnt == 3 ? SHT_STRTAB : SHT_PROGBITS))
177 if ((cnt == 1 && shdr->sh_flags != (SHF_ALLOC | SHF_EXECINSTR))
178 || (cnt == 2 && shdr->sh_flags != (SHF_ALLOC | SHF_WRITE))
179 || (cnt == 3 && shdr->sh_flags != 0))
185 if (shdr->sh_addr != 0
    [all...]
asm-tst2.c 159 GElf_Shdr *shdr; local
169 shdr = gelf_getshdr (scn, &shdr_mem);
170 if (shdr == NULL)
178 if (strcmp (elf_strptr (elf, ehdr->e_shstrndx, shdr->sh_name),
182 elf_strptr (elf, ehdr->e_shstrndx, shdr->sh_name),
187 if (shdr->sh_type != (cnt == 2 ? SHT_STRTAB : SHT_PROGBITS))
193 if ((cnt == 1 && shdr->sh_flags != (SHF_ALLOC | SHF_WRITE))
194 || (cnt == 2 && shdr->sh_flags != 0))
200 if (shdr->sh_addr != 0)
206 if ((cnt == 1 && shdr->sh_offset != ((sizeof (Elf32_Ehdr) + 15) & ~15)
    [all...]
sectiondump.c 78 GElf_Shdr *shdr; local
84 shdr = gelf_getshdr (scn, &shdr_mem);
85 if (ehdr == NULL || shdr == NULL)
99 elf_strptr (elf, ehdr->e_shstrndx, shdr->sh_name),
100 shdr->sh_type,
101 shdr->sh_flags,
102 shdr->sh_addr,
103 shdr->sh_offset,
104 shdr->sh_size,
105 shdr->sh_link
    [all...]
asm-tst9.c 193 GElf_Shdr *shdr; local
203 shdr = gelf_getshdr (scn, &shdr_mem);
204 if (shdr == NULL)
212 if (strcmp (elf_strptr (elf, ehdr->e_shstrndx, shdr->sh_name),
216 elf_strptr (elf, ehdr->e_shstrndx, shdr->sh_name),
221 if (shdr->sh_type != (cnt == 2 ? SHT_STRTAB : SHT_PROGBITS))
227 if ((cnt == 1 && shdr->sh_flags != (SHF_ALLOC | SHF_WRITE))
228 || (cnt == 2 && shdr->sh_flags != 0))
234 if (shdr->sh_addr != 0)
240 if ((cnt == 1 && shdr->sh_offset != ((sizeof (Elf32_Ehdr) + 15) & ~15)
    [all...]
update3.c 38 Elf32_Shdr *shdr; local
113 shdr = elf32_getshdr (scn);
114 if (shdr == NULL)
122 shdr->sh_type = SHT_STRTAB;
123 shdr->sh_flags = 0;
124 shdr->sh_addr = 0;
125 shdr->sh_link = SHN_UNDEF;
126 shdr->sh_info = SHN_UNDEF;
127 shdr->sh_addralign = 1;
128 shdr->sh_entsize = 0
    [all...]
asm-tst7.c 85 GElf_Shdr *shdr; local
95 shdr = gelf_getshdr (scn, &shdr_mem);
96 if (shdr == NULL)
104 if (shdr->sh_type != SHT_SYMTAB)
107 for (cnt = 1; cnt< (shdr->sh_size
  /external/elfutils/libelf/
elf-knowledge.h 23 #define SECTION_STRIP_P(ebl, elf, ehdr, shdr, name, remove_comment, remove_debug) \
25 ((shdr)->sh_flags & SHF_ALLOC) == 0 \
27 && (shdr)->sh_type != SHT_NOTE \
32 || (((shdr)->sh_type == SHT_RELA || (shdr)->sh_type == SHT_REL) \
33 && ({ Elf_Scn *scn_l = elf_getscn (elf, (shdr)->sh_info); \
42 && ((shdr)->sh_type != SHT_PROGBITS \
49 && (shdr)->sh_type < SHT_NUM)
61 #define SH_INFO_LINK_P(Shdr) \
62 ((Shdr)->sh_type == SHT_REL || (Shdr)->sh_type == SHT_RELA
    [all...]
elf32_getshdr.c 33 ElfW2(LIBELFBITS,Shdr) *
37 ElfW2(LIBELFBITS,Shdr) *result;
54 result = scn->shdr.ELFW(e,LIBELFBITS);
61 ElfW2(LIBELFBITS,Shdr) *shdr;
68 result = scn->shdr.ELFW(e,LIBELFBITS);
74 size = shnum * sizeof (ElfW2(LIBELFBITS,Shdr));
78 shdr = elf->state.ELFW(elf,LIBELFBITS).shdr =
79 (ElfW2(LIBELFBITS,Shdr) *) malloc (size)
    [all...]
gelf_getshdr.c 49 Elf32_Shdr *shdr = scn->shdr.e32 ?: INTUSE(elf32_getshdr) (scn); local
51 if (shdr == NULL)
58 dst->name = shdr->name
74 Elf64_Shdr *shdr = scn->shdr.e64 ?: INTUSE(elf64_getshdr) (scn); local
76 if (shdr == NULL)
83 result = memcpy (dst, shdr, sizeof (GElf_Shdr));
gelf_update_shdr.c 42 Elf32_Shdr *shdr = scn->shdr.e32 ?: INTUSE(elf32_getshdr) (scn); local
44 if (shdr == NULL)
62 shdr->name = src->name
76 Elf64_Shdr *shdr = scn->shdr.e64 ?: INTUSE(elf64_getshdr) (scn); local
78 if (shdr == NULL)
85 (void) memcpy (shdr, src, sizeof (GElf_Shdr));
elf32_updatenull.c 157 elf->state.ELFW(elf,LIBELFBITS).scns.data[0].shdr.ELFW(e,LIBELFBITS)->sh_size
174 ElfW2(LIBELFBITS,Shdr) *shdr = scn->shdr.ELFW(e,LIBELFBITS);
179 assert (shdr != NULL);
180 sh_entsize = shdr->sh_entsize;
181 sh_align = shdr->sh_addralign ?: 1;
184 switch (shdr->sh_type)
227 update_if_changed (shdr->sh_entsize, sh_entsize,
259 > shdr->sh_size)
    [all...]
elf32_checksum.c 79 GElf_Shdr *shdr; local
83 shdr = INTUSE(gelf_getshdr) (scn, &shdr_mem);
84 if (shdr == NULL)
90 if (SECTION_STRIP_P (NULL, NULL, NULL, shdr,
91 elf_strptr (elf, shstrndx, shdr->sh_name),
nlist.c 55 GElf_Shdr *shdr = NULL; local
84 shdr = INTUSE(gelf_getshdr) (scn, &shdr_mem);
85 if (shdr == NULL)
89 if (shdr->sh_type == SHT_SYMTAB)
96 if (shdr->sh_type == SHT_DYNSYM)
107 shdr = INTUSE(gelf_getshdr) (symscn, &shdr_mem);
108 /* SHDR->SH_LINK now contains the index of the string section. */
116 nsyms = (shdr->sh_size
139 mem.str = INTUSE(elf_strptr) (elf, shdr->sh_link, sym->st_name);
  /external/elfutils/libasm/
asm_end.c 59 GElf_Shdr *shdr; local
133 shdr = gelf_getshdr (strscn, &shdr_mem);
134 if (strtabdata == NULL || shdr == NULL)
141 shdr->sh_type = SHT_STRTAB;
142 assert (shdr->sh_entsize == 0);
144 (void) gelf_update_shdr (strscn, shdr);
149 shdr = gelf_getshdr (symscn, &shdr_mem);
150 if (data == NULL || shdr == NULL)
213 shdr = gelf_getshdr (xndxscn, &shdr_mem);
214 if (xndxdata == NULL || shdr == NULL
304 GElf_Shdr *shdr; local
    [all...]
asm_newscn_ingrp.c 56 GElf_Shdr *shdr = gelf_getshdr (result->data.main.scn, &shdr_mem); local
58 assert (shdr != NULL);
59 shdr->sh_flags |= SHF_GROUP;
61 (void) gelf_update_shdr (result->data.main.scn, shdr);
  /external/elfcopy/
elfcopy.c 90 static bool section_belongs_to_header(GElf_Shdr *shdr, GElf_Phdr *phdr);
186 shdr_info[shdridx].shdr.sh_type = SHT_STRTAB;
187 shdr_info[shdridx].shdr.sh_flags = 0;
188 shdr_info[shdridx].shdr.sh_addr = 0;
189 shdr_info[shdridx].shdr.sh_link = SHN_UNDEF;
190 shdr_info[shdridx].shdr.sh_info = SHN_UNDEF;
191 shdr_info[shdridx].shdr.sh_entsize = 0;
193 shdr_info[shdridx].shdr.sh_offset = shdr_info[shdridx].old_shdr.sh_offset;
194 shdr_info[shdridx].shdr.sh_addralign = 1;
210 shdr_info[shdridx].shdr.sh_size = (*shstrtab_data)->d_size
1226 GElf_Shdr shdr_mem, *shdr = NULL; local
    [all...]
  /build/tools/apriori/
source.c 5 GElf_Shdr *shdr,
15 FAILIF_LIBELF(NULL == gelf_getshdr(*scn, shdr), gelf_getshdr);
  /build/tools/soslim/
soslim.c 122 FAILIF_LIBELF(NULL == gelf_getshdr(scn, &shdr_info[cnt].shdr),
127 shdr_info[cnt].shdr.sh_name);
144 /* Remember the shdr.sh_link value. We need to remember this value
153 shdr_info[cnt].old_shdr = shdr_info[cnt].shdr;
160 if (shdr_info[cnt].shdr.sh_type == SHT_DYNAMIC) {
166 else if (shdr_info[cnt].shdr.sh_type == SHT_DYNSYM) {
173 FAILIF(shdr_info[cnt].shdr.sh_type == SHT_SYMTAB_SHNDX,
175 FAILIF(shdr_info[cnt].shdr.sh_type == SHT_GROUP,
177 FAILIF(shdr_info[cnt].shdr.sh_type == SHT_GNU_versym,
210 if (SECTION_STRIP_P (ebl, elf, ehdr, &shdr_info[cnt].shdr,
    [all...]
  /external/elfutils/src/
elflint.c 323 GElf_Shdr *shdr; local
325 shdr = gelf_getshdr (elf_getscn (ebl->elf, idx), &shdr_mem);
327 return elf_strptr (ebl->elf, shstrndx, shdr->sh_name);
444 GElf_Shdr *shdr; local
446 shdr = gelf_getshdr (elf_getscn (ebl->elf, 0), &shdr_mem);
447 if (shdr != NULL)
450 if (shdr->sh_size == 0)
454 shnum = shdr->sh_size;
463 GElf_Shdr *shdr; local
465 shdr = gelf_getshdr (elf_getscn (ebl->elf, 0), &shdr_mem)
537 GElf_Shdr *shdr; local
586 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); local
1000 GElf_Shdr *shdr; local
1135 GElf_Shdr *shdr; local
1275 GElf_Shdr *shdr; local
1481 GElf_Shdr *shdr; local
1570 GElf_Shdr *shdr; local
1936 GElf_Shdr *shdr; local
    [all...]
strip.c 379 GElf_Shdr shdr; member in struct:shdr_info
383 Elf32_Word old_sh_link; /* Original value of shdr.sh_link. */
561 if (gelf_getshdr (scn, &shdr_info[cnt].shdr) == NULL)
566 shdr_info[cnt].shdr.sh_name);
576 /* Remember the shdr.sh_link value. */
577 shdr_info[cnt].old_sh_link = shdr_info[cnt].shdr.sh_link;
583 || (shdr_info[cnt].shdr.sh_flags & SHF_ALLOC) == 0)
584 shdr_info[cnt].shdr.sh_offset = 0;
588 if (unlikely (shdr_info[cnt].shdr.sh_type == SHT_SYMTAB_SHNDX))
590 assert (shdr_info[shdr_info[cnt].shdr.sh_link].symtab_idx == 0)
1394 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); local
1457 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); local
1548 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); local
1571 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); local
    [all...]
readelf.c 165 GElf_Shdr *shdr);
167 GElf_Shdr *shdr);
170 GElf_Shdr *shdr);
173 GElf_Shdr *shdr);
175 GElf_Shdr *shdr);
177 GElf_Shdr *shdr);
620 GElf_Shdr *shdr; local
622 shdr = gelf_getshdr (elf_getscn (ebl->elf, 0), &shdr_mem);
623 if (shdr != NULL)
625 (uint32_t) shdr->sh_size)
634 GElf_Shdr *shdr; local
707 GElf_Shdr *shdr; local
858 GElf_Shdr *shdr; local
997 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); local
1256 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); local
1278 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); local
1617 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); local
1876 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); local
2393 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); local
2518 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); local
4399 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); local
    [all...]
ldgeneric.c 600 SCNINFO_SHDR (fileinfo->scninfo[sym->st_shndx].shdr).sh_name);
632 SCNINFO_SHDR (oldfile->scninfo[shndx].shdr).sh_name);
783 SCNINFO_SHDR (fileinfo->scninfo[shndx].shdr).sh_name));
821 XElf_Shdr *shdr = &SCNINFO_SHDR (fileinfo->scninfo[idx].shdr); local
827 elf_strptr (fileinfo->elf, fileinfo->shstrndx, shdr->sh_name));
835 shdr->sh_name))
837 && ((shdr->sh_type != SHT_RELA && shdr->sh_type != SHT_REL)
841 SCNINFO_SHDR (fileinfo->scninfo[shdr->sh_info].shdr).sh_name))))
863 XElf_Shdr *shdr = &SCNINFO_SHDR (scninfo->shdr); local
913 XElf_Shdr *shdr = &SCNINFO_SHDR (scninfo->shdr); local
1043 XElf_Shdr *shdr; local
3209 xelf_getshdr (elf_getscn (ld_state.outelf, 1), shdr); local
5885 shdr); local
5994 shdr); local
6002 shdr); local
6012 shdr); local
6024 shdr); local
6032 ld_state.pltrelscnidx), shdr); local
6048 ld_state.reldynscnidx), shdr); local
6074 ld_state.verneedscnidx), shdr); local
6086 ld_state.versymscnidx), shdr); local
    [all...]

Completed in 864 milliseconds

1 2 3