Searched defs:shdr (Results 1 - 25 of 54) sorted by relevance

123

/external/elfutils/libasm/
H A Dasm_newscn_ingrp.c68 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 Dasm_newscn.c108 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 Dgelf_getshdr.c82 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 Dgelf_update_shdr.c75 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 Delf32_checksum.c121 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 Delf_getdata.c202 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 Dnlist.c88 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 Dscnnames.c84 GElf_Shdr shdr; local
86 if (gelf_getshdr (scn, &shdr) != NULL)
87 name = elf_strptr (elf, strndx, (size_t) shdr.sh_name);
H A Dasm-tst7.c108 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 Dasm-tst8.c109 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 Dupdate3.c50 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 Dasm-tst1.c166 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 Dasm-tst2.c182 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 Dasm-tst9.c216 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 Dupdate4.c51 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 Dasm-tst3.c182 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 Dsectiondump.c90 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 Deblsectionstripp.c59 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 Dalpha_symbol.c84 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 Dsparc_symbol.c73 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 Dppc_symbol.c92 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 Ddwfl_module_addrsym.c80 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 Ddwfl_module_build_id.c131 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 Ddwarf_begin_elf.c91 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 Darlib.c246 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);

Completed in 566 milliseconds

123