Home
last modified time | relevance | path

Searched refs:psection (Results 1 – 10 of 10) sorted by relevance

/third_party/elfio/examples/c_wrapper/
Dc_example.c70 psection_t psection = elfio_get_section_by_index( pelfio, i ); in main() local
72 elfio_section_get_name( psection, buff, 100 ); in main()
97 psection_t psection = elfio_get_section_by_name( pelfio, ".symtab" ); in main() local
98 psymbol_t psymbols = elfio_symbol_section_accessor_new( pelfio, psection ); in main()
117 psection = elfio_get_section_by_name( pelfio, ".rela.dyn" ); in main()
119 elfio_relocation_section_accessor_new( pelfio, psection ); in main()
135 psection = elfio_get_section_by_name( pelfio, ".strtab" ); in main()
136 pstring_t pstring = elfio_string_section_accessor_new( psection ); in main()
149 psection = elfio_get_section_by_name( pelfio, ".note.gnu.build-id" ); in main()
150 pnote_t pnote = elfio_note_section_accessor_new( pelfio, psection ); in main()
[all …]
Delfio_c_wrapper.cpp137 void elfio_section_get_name( psection_t psection, char* buffer, int len ) in elfio_section_get_name() argument
139 strncpy( buffer, psection->get_name().c_str(), (size_t)len - 1 ); in elfio_section_get_name()
142 void elfio_section_set_name( psection_t psection, char* buffer ) in elfio_section_set_name() argument
144 psection->set_name( buffer ); in elfio_section_set_name()
147 char* elfio_section_get_data( psection_t psection ) in elfio_section_get_data() argument
149 return (char*)psection->get_data(); in elfio_section_get_data()
152 void elfio_section_set_data( psection_t psection, in elfio_section_set_data() argument
156 psection->set_data( pData, size ); in elfio_section_set_data()
159 void elfio_section_append_data( psection_t psection, in elfio_section_append_data() argument
163 psection->append_data( pData, size ); in elfio_section_append_data()
[all …]
Delfio_c_wrapper.h155 void elfio_section_get_name( psection_t psection, char* buffer, int len );
156 void elfio_section_set_name( psection_t psection, char* buffer );
157 char* elfio_section_get_data( psection_t psection );
158 void elfio_section_set_data( psection_t psection,
161 void elfio_section_append_data( psection_t psection,
190 psection_t psection );
218 psection_t psection );
245 pstring_t elfio_string_section_accessor_new( psection_t psection );
254 psection_t psection );
273 pmodinfo_t elfio_modinfo_section_accessor_new( psection_t psection );
[all …]
/third_party/elfio/c_wrapper/
Delfio_c_wrapper.cpp137 void elfio_section_get_name( psection_t psection, char* buffer, int len ) in elfio_section_get_name() argument
139 strncpy( buffer, psection->get_name().c_str(), (size_t)len - 1 ); in elfio_section_get_name()
142 void elfio_section_set_name( psection_t psection, char* buffer ) in elfio_section_set_name() argument
144 psection->set_name( buffer ); in elfio_section_set_name()
147 char* elfio_section_get_data( psection_t psection ) in elfio_section_get_data() argument
149 return (char*)psection->get_data(); in elfio_section_get_data()
152 void elfio_section_set_data( psection_t psection, in elfio_section_set_data() argument
156 psection->set_data( pData, size ); in elfio_section_set_data()
159 void elfio_section_append_data( psection_t psection, in elfio_section_append_data() argument
163 psection->append_data( pData, size ); in elfio_section_append_data()
[all …]
Delfio_c_wrapper.h157 void elfio_section_get_name( psection_t psection, char* buffer, int len );
158 void elfio_section_set_name( psection_t psection, char* buffer );
159 char* elfio_section_get_data( psection_t psection );
160 void elfio_section_set_data( psection_t psection,
163 void elfio_section_append_data( psection_t psection,
192 psection_t psection );
220 psection_t psection );
247 pstring_t elfio_string_section_accessor_new( psection_t psection );
256 psection_t psection );
275 pmodinfo_t elfio_modinfo_section_accessor_new( psection_t psection );
[all …]
/third_party/libbpf/src/
Delf.c112 psection_t psection = elfio_get_section_by_index(pelfio, i); in elf_find_next_scn_by_type() local
113 if (psection == pscn) { in elf_find_next_scn_by_type()
119 psection_t psection = elfio_get_section_by_index(pelfio, j); in elf_find_next_scn_by_type() local
120 Elf_Word sec_type = elfio_section_get_type(psection); in elf_find_next_scn_by_type()
122 return psection; in elf_find_next_scn_by_type()
172 psection_t psection = elfio_get_section_by_index(elf, idx); in elf_sec_hdr_by_idx() local
173 sheader->sh_name = elfio_section_get_name_string_offset(psection); in elf_sec_hdr_by_idx()
174 sheader->sh_type = elfio_section_get_type(psection); in elf_sec_hdr_by_idx()
175 sheader->sh_flags = elfio_section_get_flags(psection); in elf_sec_hdr_by_idx()
176 sheader->sh_addr = elfio_section_get_address(psection); in elf_sec_hdr_by_idx()
[all …]
Dbtf.c1089 psection_t psection = elfio_get_section_by_index(elf, idx); in elf_sec_hdr_by_idx() local
1091 sheader->sh_name = elfio_section_get_name_string_offset(psection); in elf_sec_hdr_by_idx()
1092 sheader->sh_type = elfio_section_get_type(psection); in elf_sec_hdr_by_idx()
1093 sheader->sh_flags = elfio_section_get_flags(psection); in elf_sec_hdr_by_idx()
1094 sheader->sh_addr = elfio_section_get_address(psection); in elf_sec_hdr_by_idx()
1095 sheader->sh_offset = elfio_section_get_offset(psection); in elf_sec_hdr_by_idx()
1096 sheader->sh_size = elfio_section_get_size(psection); in elf_sec_hdr_by_idx()
1097 sheader->sh_link = elfio_section_get_link(psection); in elf_sec_hdr_by_idx()
1098 sheader->sh_info = elfio_section_get_info(psection); in elf_sec_hdr_by_idx()
1099 sheader->sh_addralign = elfio_section_get_addr_align(psection); in elf_sec_hdr_by_idx()
[all …]
Dlibbpf.c621 psection_t psection; member
3512 psection_t psection = elfio_get_section_by_index(obj->efile.elf, idx); local
3514 sheader->sh_name = elfio_section_get_name_string_offset(psection);
3515 sheader->sh_type = elfio_section_get_type(psection);
3516 sheader->sh_flags = elfio_section_get_flags(psection);
3517 sheader->sh_addr = elfio_section_get_address(psection);
3518 sheader->sh_offset = elfio_section_get_offset(psection);
3519 sheader->sh_size = elfio_section_get_size(psection);
3520 sheader->sh_link = elfio_section_get_link(psection);
3521 sheader->sh_info = elfio_section_get_info(psection);
[all …]
/third_party/openssl/crypto/conf/
Dconf_def.c222 char *start, *psection, *pname; in def_load_bio() local
388 psection = pname; in def_load_bio()
392 psection = section; in def_load_bio()
470 if (!str_copy(conf, psection, &include, p)) in def_load_bio()
549 if (!str_copy(conf, psection, &(v->value), start)) in def_load_bio()
552 if (strcmp(psection, section) != 0) { in def_load_bio()
553 if ((tv = _CONF_get_section(conf, psection)) in def_load_bio()
555 tv = _CONF_new_section(conf, psection); in def_load_bio()
/third_party/node/deps/openssl/openssl/crypto/conf/
Dconf_def.c222 char *start, *psection, *pname; in def_load_bio() local
388 psection = pname; in def_load_bio()
392 psection = section; in def_load_bio()
470 if (!str_copy(conf, psection, &include, p)) in def_load_bio()
549 if (!str_copy(conf, psection, &(v->value), start)) in def_load_bio()
552 if (strcmp(psection, section) != 0) { in def_load_bio()
553 if ((tv = _CONF_get_section(conf, psection)) in def_load_bio()
555 tv = _CONF_new_section(conf, psection); in def_load_bio()