/external/elfutils/libasm/ |
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);
|
H A D | asm_newscn.c | 108 GElf_Shdr *shdr; local 146 shdr = gelf_getshdr (scn, &shdr_mem); 148 shdr->sh_flags = flags; 149 result->type = shdr->sh_type = type; 151 (void) gelf_update_shdr (scn, shdr);
|
/external/elfutils/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 | 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 | elf_getdata.c | 202 Elf32_Shdr *shdr local 203 = scn->shdr.e32 ?: __elf32_getshdr_wrlock (scn); 205 if (shdr == NULL) 209 offset = shdr->sh_offset; 210 size = shdr->sh_size; 211 type = shdr->sh_type; 212 align = shdr->sh_addralign; 216 Elf64_Shdr *shdr local 217 = scn->shdr.e64 ?: __elf64_getshdr_wrlock (scn); 219 if (shdr [all...] |
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/elfutils/tests/ |
H A D | scnnames.c | 84 GElf_Shdr shdr; local 86 if (gelf_getshdr (scn, &shdr) != NULL) 87 name = elf_strptr (elf, strndx, (size_t) shdr.sh_name);
|
H A D | asm-tst7.c | 108 GElf_Shdr *shdr; local 118 shdr = gelf_getshdr (scn, &shdr_mem); 119 if (shdr == NULL) 127 if (shdr->sh_type != SHT_SYMTAB) 130 for (cnt = 1; cnt< (shdr->sh_size
|
H A D | asm-tst8.c | 109 GElf_Shdr *shdr; local 119 shdr = gelf_getshdr (scn, &shdr_mem); 120 if (shdr == NULL) 128 if (shdr->sh_type != SHT_SYMTAB) 131 for (cnt = 1; cnt< (shdr->sh_size
|
H A D | 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 [all...] |
H A D | 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 [all...] |
H A D | 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 [all...] |
H A D | 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 [all...] |
H A D | 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 [all...] |
H A D | 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 [all...] |
H A D | 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 [all...] |
/external/elfutils/libebl/ |
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/backends/ |
H A D | alpha_symbol.c | 84 const GElf_Shdr *shdr, 87 if ((shdr->sh_flags 89 && shdr->sh_addr != 0) 117 return pltgot == shdr->sh_addr; 82 alpha_check_special_section(Ebl *ebl, int ndx __attribute__ ((unused)), const GElf_Shdr *shdr, const char *sname __attribute__ ((unused))) argument
|
H A D | sparc_symbol.c | 73 const GElf_Shdr *shdr, 76 if ((shdr->sh_flags & (SHF_WRITE | SHF_EXECINSTR)) 100 return dyn.d_un.d_ptr == shdr->sh_addr; 71 sparc_check_special_section(Ebl *ebl, int ndx __attribute__ ((unused)), const GElf_Shdr *shdr, const char *sname __attribute__ ((unused))) argument
|
H A D | ppc_symbol.c | 92 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); local 94 if (shdr != NULL && shdr->sh_type == SHT_DYNAMIC && data != NULL) 95 for (unsigned int j = 0; j < shdr->sh_size / shdr->sh_entsize; ++j)
|
/external/elfutils/libdwfl/ |
H A D | dwfl_module_addrsym.c | 80 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); local 81 if (likely (shdr != NULL) 82 && mod_addr >= shdr->sh_addr 83 && mod_addr < shdr->sh_addr + shdr->sh_size)
|
H A D | dwfl_module_build_id.c | 131 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); local 132 if (likely (shdr != NULL) && shdr->sh_type == SHT_NOTE) 134 (shdr->sh_flags & SHF_ALLOC) 135 ? shdr->sh_addr + mod->main.bias : NO_VADDR);
|
/external/elfutils/libdw/ |
H A D | dwarf_begin_elf.c | 91 GElf_Shdr *shdr; local 94 shdr = gelf_getshdr (scn, &shdr_mem); 95 if (shdr == NULL) 103 if (unlikely (shdr->sh_type == SHT_NOBITS)) 111 if (! inscngrp && (shdr->sh_flags & SHF_GROUP) != 0) 119 shdr->sh_name);
|
/external/elfutils/src/ |
H A D | arlib.c | 246 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); local 247 if (shdr == NULL) 250 if (shdr->sh_type != symtype) 257 int nsyms = shdr->sh_size / shdr->sh_entsize; 258 for (int ndx = shdr->sh_info; ndx < nsyms; ++ndx) 270 const char *symname = elf_strptr (elf, shdr->sh_link, sym->st_name);
|