Home
last modified time | relevance | path

Searched refs:Elf_Scn (Results 1 – 25 of 119) sorted by relevance

12345

/external/elfutils/libelf/
Dlibelf.h193 typedef struct Elf_Scn Elf_Scn; typedef
256 extern Elf_Scn *elf_getscn (Elf *__elf, size_t __index);
259 extern Elf_Scn *elf32_offscn (Elf *__elf, Elf32_Off __offset);
261 extern Elf_Scn *elf64_offscn (Elf *__elf, Elf64_Off __offset);
264 extern size_t elf_ndxscn (Elf_Scn *__scn);
267 extern Elf_Scn *elf_nextscn (Elf *__elf, Elf_Scn *__scn);
270 extern Elf_Scn *elf_newscn (Elf *__elf);
274 extern int elf_scnshndx (Elf_Scn *__scn);
301 extern Elf32_Shdr *elf32_getshdr (Elf_Scn *__scn);
303 extern Elf64_Shdr *elf64_getshdr (Elf_Scn *__scn);
[all …]
DlibelfP.h159 Elf_Scn *s;
175 struct Elf_Scn struct
256 struct Elf_Scn data[0]; /* Section data. */ argument
266 Elf_Scn dummy_scn;
488 extern int __libelf_set_rawdata (Elf_Scn *scn) internal_function;
489 extern int __libelf_set_rawdata_wrlock (Elf_Scn *scn) internal_function;
525 extern Elf_Scn *__elf32_offscn_internal (Elf *__elf, Elf32_Off __offset)
527 extern Elf_Scn *__elf64_offscn_internal (Elf *__elf, Elf64_Off __offset)
537 extern Elf32_Shdr *__elf32_getshdr_rdlock (Elf_Scn *__scn) internal_function;
538 extern Elf64_Shdr *__elf64_getshdr_rdlock (Elf_Scn *__scn) internal_function;
[all …]
Delf32_updatefile.c56 const Elf_Scn **scna = (const Elf_Scn **) a; in compare_sections()
57 const Elf_Scn **scnb = (const Elf_Scn **) b; in compare_sections()
92 sort_sections (Elf_Scn **scns, Elf_ScnList *list) in sort_sections()
94 Elf_Scn **scnp = scns; in sort_sections()
228 if (unlikely (shnum > SIZE_MAX / sizeof (Elf_Scn *))) in __elfw2()
232 Elf_Scn **scns = (Elf_Scn **) malloc (shnum * sizeof (Elf_Scn *)); in __elfw2()
257 Elf_Scn *scn = scns[cnt]; in __elfw2()
311 Elf_Scn *scn = scns[cnt]; in __elfw2()
421 Elf_Scn *scn = scns[cnt]; in __elfw2()
649 if (unlikely (shnum > SIZE_MAX / (sizeof (Elf_Scn *) in __elfw2()
[all …]
Delf_nextscn.c41 Elf_Scn *
42 elf_nextscn (Elf *elf, Elf_Scn *scn) in elf_nextscn()
44 Elf_Scn *result = NULL; in elf_nextscn()
Delf_newscn.c43 Elf_Scn *
46 Elf_Scn *result = NULL; in elf_newscn()
92 < SIZE_MAX / 2 / sizeof (Elf_Scn) - sizeof (Elf_ScnList)) in elf_newscn()
99 * sizeof (Elf_Scn)), 1); in elf_newscn()
Dgelf.h172 extern Elf_Scn *gelf_offscn (Elf *__elf, GElf_Off __offset);
175 extern GElf_Shdr *gelf_getshdr (Elf_Scn *__scn, GElf_Shdr *__dst);
178 extern int gelf_update_shdr (Elf_Scn *__scn, GElf_Shdr *__src);
191 extern GElf_Chdr *gelf_getchdr (Elf_Scn *__scn, GElf_Chdr *__dst);
Delf32_getshdr.c49 load_shdr_wrlock (Elf_Scn *scn) in ElfW2()
228 scn_valid (Elf_Scn *scn) in scn_valid()
250 __elfw2(LIBELFBITS,getshdr_rdlock) (Elf_Scn *scn) in ElfW2()
272 __elfw2(LIBELFBITS,getshdr_wrlock) (Elf_Scn *scn) in ElfW2()
287 elfw2(LIBELFBITS,getshdr) (Elf_Scn *scn) in ElfW2()
Delf_getscn.c41 Elf_Scn *
55 Elf_Scn *result = NULL; in elf_getscn()
Delf32_offscn.c45 Elf_Scn *
68 Elf_Scn *result = NULL; in elfw2()
Delf_getdata.c139 convert_data (Elf_Scn *scn, int version __attribute__ ((unused)), int eclass, in convert_data()
219 __libelf_set_rawdata_wrlock (Elf_Scn *scn) in __libelf_set_rawdata_wrlock()
390 __libelf_set_rawdata (Elf_Scn *scn) in __libelf_set_rawdata()
406 __libelf_set_data_list_rdlock (Elf_Scn *scn, int wrlocked) in __libelf_set_data_list_rdlock()
444 __elf_getdata_rdlock (Elf_Scn *scn, Elf_Data *data) in __elf_getdata_rdlock()
540 elf_getdata (Elf_Scn *scn, Elf_Data *data) in elf_getdata()
Delf_compress.c72 __libelf_compress (Elf_Scn *scn, size_t hsize, int ei_data, in __libelf_compress()
258 __libelf_decompress_elf (Elf_Scn *scn, size_t *size_out, size_t *addralign) in __libelf_decompress_elf()
299 __libelf_reset_rawdata (Elf_Scn *scn, void *buf, size_t size, size_t align, in __libelf_reset_rawdata()
323 elf_compress (Elf_Scn *scn, int type, unsigned int flags) in elf_compress()
/external/elfutils/libdwfl/
Dderelocate.c36 Elf_Scn *scn;
37 Elf_Scn *relocs;
47 Elf_Scn *scn;
48 Elf_Scn *relocs;
88 Elf_Scn *scn = NULL; in cache_sections()
143 Elf_Scn *tscn = elf_getscn (mod->main.elf, shdr->sh_info); in cache_sections()
202 Elf_Scn *tscn = elf_getscn (mod->main.elf, shdr->sh_info); in cache_sections()
393 Elf_Scn * in INTDEF()
408 Elf_Scn *tscn = mod->reloc_info->refs[idx].scn; in INTDEF()
409 Elf_Scn *relocscn = mod->reloc_info->refs[idx].relocs; in INTDEF()
Drelocate.c47 Elf_Scn *refscn = elf_getscn (elf, shndx); in __libdwfl_relocate_value()
121 Elf_Scn *scn = NULL; in relocate_getsym()
216 Elf_Scn *scn = elf_getscn (symtab->symelf, symtab->strtabndx); in resolve_symbol()
480 Elf_Scn *scn, GElf_Shdr *shdr, in relocate_section()
481 Elf_Scn *tscn, bool debugscn, bool partial) in relocate_section()
720 Elf_Scn *scn = NULL; in __libdwfl_relocate()
732 Elf_Scn *tscn = elf_getscn (debugfile, shdr->sh_info); in __libdwfl_relocate()
748 Elf_Scn *relocscn, Elf_Scn *tscn, bool partial) in __libdwfl_relocate_section()
Ddwfl_module_getdwarf.c276 Elf_Scn *scn = NULL; in find_prelink_address_sync()
598 Elf_Scn **symscn, Elf_Scn **xndxscn, in load_symtab()
602 Elf_Scn *scn = NULL; in load_symtab()
928 Elf_Scn **aux_symscn __attribute__ ((unused)), in find_aux_sym()
929 Elf_Scn **aux_xndxscn __attribute__ ((unused)), in find_aux_sym()
941 Elf_Scn *scn = NULL; in find_aux_sym()
1056 Elf_Scn *symscn = NULL, *xndxscn = NULL; in find_symtab()
1057 Elf_Scn *aux_symscn = NULL, *aux_xndxscn = NULL; in find_symtab()
1139 Elf_Scn *symstrscn = elf_getscn (mod->symfile->elf, strshndx); in find_symtab()
1222 Elf_Scn *aux_strscn = elf_getscn (mod->aux_sym.elf, aux_strshndx); in find_symtab()
/external/elfutils/libasm/
DlibasmP.h59 #define ASM_ABS_SCN ((Elf_Scn *) 1)
60 #define ASM_COM_SCN ((Elf_Scn *) 2)
85 Elf_Scn *scn;
221 Elf_Scn *scn;
Dasm_end.c68 Elf_Scn *shstrscn; in binary_end()
90 Elf_Scn *scn = elf_getscn (ctx->out.elf, asmscn->data.main.scnndx); in binary_end()
92 Elf_Scn *scn = asmscn->data.main.scn; in binary_end()
143 Elf_Scn *strscn = elf_newscn (ctx->out.elf); in binary_end()
161 Elf_Scn *symscn = elf_newscn (ctx->out.elf); in binary_end()
209 Elf_Scn *scn = (sym->scn->subsection_id == 0 in binary_end()
224 Elf_Scn *xndxscn; in binary_end()
320 Elf_Scn *scn; in binary_end()
385 Elf_Scn *scn = elf_getscn (ctx->out.elf, symscnndx); in binary_end()
444 Elf_Scn *scn = elf_getscn (ctx->out.elf, 0); in binary_end()
/external/elfutils/libdw/
Ddwarf_begin_elf.c68 check_section (Dwarf *result, GElf_Ehdr *ehdr, Elf_Scn *scn, bool inscngrp) in check_section()
219 Elf_Scn *scn = NULL; in global_read()
229 scngrp_read (Dwarf *result, Elf *elf, GElf_Ehdr *ehdr, Elf_Scn *scngrp) in scngrp_read()
267 Elf_Scn *scn = elf_getscn (elf, scnidx[cnt]); in scngrp_read()
288 dwarf_begin_elf (Elf *elf, Dwarf_Cmd cmd, Elf_Scn *scngrp) in dwarf_begin_elf()
Ddwarf_getcfi_elf.c216 Elf_Scn *scn, GElf_Shdr *shdr, in getcfi_scn_eh_frame()
217 Elf_Scn *hdr_scn, GElf_Addr hdr_vaddr) in getcfi_scn_eh_frame()
282 Elf_Scn *hdr_scn = NULL; in getcfi_shdr()
284 Elf_Scn *scn = NULL; in getcfi_shdr()
/external/elfutils/tests/
Dnewdata.c42 Elf_Scn *scn = elf_getscn (elf, 1); in add_section_data()
111 Elf_Scn *scn = elf_newscn (elf); in create_elf()
172 Elf_Scn *scn = elf_getscn (elf, 1); in check_section_size()
200 Elf_Scn *scn = elf_getscn (elf, 1); in check_section_data()
313 Elf_Scn *scn = elf_getscn (elf, 1); in check_elf()
Ddwflsyms.c92 Elf_Scn *scn = elf_getscn (elf, shndx); in elf_section_name()
102 Elf_Scn *scn = elf_getscn (elf, shndx); in addr_in_section()
190 Elf_Scn *scn = dwfl_module_address_section (mod, &addr, &ebias); in list_syms()
Decp.c77 Elf_Scn *scn = NULL; in main()
80 Elf_Scn *newscn = elf_newscn (outelf); in main()
Delfstrmerge.c183 Elf_Scn *shdrstrscn = elf_getscn (elf, shdrstrndx); in main()
194 Elf_Scn *symtabscn = NULL; in main()
219 Elf_Scn *strtabscn = elf_getscn (elf, strtabndx); in main()
264 Elf_Scn *scn = NULL; in main()
399 Elf_Scn *zscn = elf_getscn (elfnew, 0); in main()
450 Elf_Scn *newscn = elf_newscn (elfnew); in main()
/external/elfutils/src/
Dld.h152 Elf_Scn *scn;
223 Elf_Scn *dynscn;
347 void (*relocate_section) (struct ld_state *, Elf_Scn *, struct scninfo *,
385 void (*initialize_plt) (struct ld_state *, Elf_Scn *scn);
390 void (*initialize_pltrel) (struct ld_state *, Elf_Scn *scn);
401 void (*initialize_got) (struct ld_state *, Elf_Scn *scn);
406 void (*initialize_gotplt) (struct ld_state *, Elf_Scn *scn);
Dunstrip.c275 Elf_Scn *scn = NULL; in copy_elf()
278 Elf_Scn *newscn = elf_newscn (outelf); in copy_elf()
372 symtab_count_leading_section_symbols (Elf *elf, Elf_Scn *scn, size_t shnum, in symtab_count_leading_section_symbols()
406 update_shdr (Elf_Scn *outscn, GElf_Shdr *newshdr) in update_shdr()
414 update_sh_size (Elf_Scn *outscn, const Elf_Data *data) in update_sh_size()
427 adjust_relocs (Elf_Scn *outscn, Elf_Scn *inscn, const GElf_Shdr *shdr, in adjust_relocs()
567 adjust_all_relocs (Elf *elf, Elf_Scn *symtab, const GElf_Shdr *symshdr, in adjust_all_relocs()
571 Elf_Scn *scn = NULL; in adjust_all_relocs()
587 add_new_section_symbols (Elf_Scn *old_symscn, size_t old_shnum, in add_new_section_symbols()
588 Elf *elf, bool rel, Elf_Scn *symscn, size_t shnum) in add_new_section_symbols()
[all …]
Di386_ld.c60 Elf_Scn *outscn, struct scninfo *firstp, in elf_i386_relocate_section()
189 elf_i386_initialize_plt (struct ld_state *statep, Elf_Scn *scn) in elf_i386_initialize_plt()
218 elf_i386_initialize_pltrel (struct ld_state *statep, Elf_Scn *scn) in elf_i386_initialize_pltrel()
238 elf_i386_initialize_got (struct ld_state *statep, Elf_Scn *scn) in elf_i386_initialize_got()
259 elf_i386_initialize_gotplt (struct ld_state *statep, Elf_Scn *scn) in elf_i386_initialize_gotplt()
361 Elf_Scn *scn; in elf_i386_finalize_plt()
715 Elf_Scn *pltscn = elf_getscn (statep->outelf, statep->pltscnidx); in elf_i386_create_relocations()
720 Elf_Scn *gotscn = elf_getscn (statep->outelf, statep->gotscnidx); in elf_i386_create_relocations()
729 Elf_Scn *gotpltscn = elf_getscn (statep->outelf, statep->gotpltscnidx); in elf_i386_create_relocations()
734 Elf_Scn *reldynscn = elf_getscn (statep->outelf, statep->reldynscnidx); in elf_i386_create_relocations()
[all …]

12345