/external/elfutils/libasm/ |
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);
|
asm_newscn.c | 95 GElf_Shdr *shdr; local 133 shdr = gelf_getshdr (scn, &shdr_mem); 135 shdr->sh_flags = flags; 136 result->type = shdr->sh_type = type; 138 (void) gelf_update_shdr (scn, shdr);
|
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...] |
/external/elfutils/libelf/ |
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_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),
|
elf_getdata.c | 190 Elf32_Shdr *shdr = scn->shdr.e32 ?: INTUSE(elf32_getshdr) (scn); local 192 if (shdr == NULL) 196 offset = shdr->sh_offset; 197 size = shdr->sh_size; 198 type = shdr->sh_type; 199 align = shdr->sh_addralign; 203 Elf64_Shdr *shdr = scn->shdr.e64 ?: INTUSE(elf64_getshdr) (scn); local 205 if (shdr == NULL [all...] |
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/tests/ |
scnnames.c | 66 GElf_Shdr shdr; local 68 if (gelf_getshdr (scn, &shdr) != NULL) 69 name = elf_strptr (elf, strndx, (size_t) shdr.sh_name);
|
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...] |
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
|
asm-tst8.c | 86 GElf_Shdr *shdr; local 96 shdr = gelf_getshdr (scn, &shdr_mem); 97 if (shdr == NULL) 105 if (shdr->sh_type != SHT_SYMTAB) 108 for (cnt = 1; cnt< (shdr->sh_size
|
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...] |
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-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...] |
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-tst3.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 != scntypes[cnt]) 193 if ((cnt == 1 && shdr->sh_flags != (SHF_ALLOC | SHF_WRITE)) 194 || (cnt != 1 && shdr->sh_flags != 0)) 200 if (shdr->sh_addr != 0) 210 if (shdr->sh_link != 2 [all...] |
/build/tools/soslim/ |
symfilter.c | 208 Elf32_Shdr *shdr; local 212 shdr = elf32_getshdr(sect); 217 if (shdr->sh_type == SHT_HASH) 232 Elf32_Shdr *shdr; local 236 shdr = elf32_getshdr(sect); 238 if (shdr->sh_type == SHT_DYNSYM)
|
main.c | 242 GElf_Shdr shdr; local 247 FAILIF_LIBELF(NULL == gelf_getshdr(scn, &shdr), gelf_getshdr); 248 if (SHT_DYNSYM == shdr.sh_type) { 354 elf_strptr(elf, shdr.sh_link, sym->st_name)); 358 } /* if (shdr.sh_type = SHT_DYNSYM) */
|
/external/elfcopy/ |
elfcopy.h | 16 GElf_Shdr shdr; member in struct:shdr_info_t
|
fixdwarf.c | 209 section->address = s_shdr_info[shdr_idx].shdr.sh_addr; 215 ASSERT(s_shdr_info[shdr_idx].shdr.sh_size == s_shdr_info[shdr_idx].newdata->d_size); 413 shdr_info_t *shdr = find_section(val); local 415 if(shdr == NULL) { 420 long delta = shdr->shdr.sh_addr - shdr->old_shdr.sh_addr; 426 shdr->name); 435 shdr_info_t *shdr = find_section(base + begin); local 447 if(shdr == NULL) 495 shdr_info_t *shdr = find_section(value); local [all...] |
/external/elfutils/libdw/ |
dwarf_begin_elf.c | 54 GElf_Shdr *shdr; local 57 shdr = gelf_getshdr (scn, &shdr_mem); 58 if (shdr == NULL) 69 if (! inscngrp && (shdr->sh_flags & SHF_GROUP) != 0) 77 shdr->sh_name);
|
/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...] |
/build/tools/apriori/ |
source.h | 20 GElf_Shdr shdr; member in struct:__anon620 118 GElf_Shdr *shdr,
|