MCPcopy Index your code

hub / github.com/cole14/rust-elf / functions

Functions381 in github.com/cole14/rust-elf

↓ 68 callersMethodparse_u32_at
(self, offset: &mut usize, data: &[u8])
src/endian.rs:67
↓ 52 callersFunctiontest_parse_for
( endian: E, class: Class, expected: P, )
src/parse.rs:345
↓ 50 callersMethodget
Parse the element at `index` in the table.
src/parse.rs:304
↓ 29 callersMethodget_data_range
Helper method which uses checked integer math to get a tuple of (start,end) for this SectionHeader's (sh_offset, sh_offset + sh_size)
src/section.rs:118
↓ 28 callersMethodparse_u64_at
(self, offset: &mut usize, data: &[u8])
src/endian.rs:71
↓ 26 callersMethodget_bytes
(self, range: Range<usize>)
src/parse.rs:336
↓ 23 callersMethoditer
Get a lazy-parsing iterator for the table's bytes
src/parse.rs:289
↓ 19 callersMethodparse_u16_at
(self, offset: &mut usize, data: &[u8])
src/endian.rs:63
↓ 16 callersMethodread_bytes
(&mut self, start: usize, end: usize)
src/elf_stream.rs:703
↓ 15 callersMethodis_empty
Returns whether the table is empty (contains zero elements).
src/parse.rs:299
↓ 15 callersMethodnext
(&mut self)
src/gnu_symver.rs:39
↓ 13 callersMethodfind
Use the hash table to find the symbol table entry with the given name and hash.
src/hash.rs:101
↓ 11 callersMethodsection_headers
Get this Elf object's zero-alloc lazy-parsing [SectionHeaderTable] (if any). This table parses [SectionHeader]s on demand and does not make any inter
src/elf_bytes.rs:210
↓ 10 callersMethodget_requirement
( &self, sym_idx: usize, )
src/gnu_symver.rs:69
↓ 9 callersMethodlen
Returns the number of elements of type P in the table.
src/parse.rs:294
↓ 8 callersMethodget_bytes
(&self, range: Range<usize>)
src/elf_stream.rs:708
↓ 8 callersMethodload_bytes
(&mut self, range: Range<usize>)
src/elf_stream.rs:716
↓ 7 callersFunctionverify_ident
(buf: &[u8])
src/file.rs:124
↓ 6 callersMethodget_definition
( &self, sym_idx: usize, )
src/gnu_symver.rs:109
↓ 6 callersMethodget_file_data_range
Helper method which uses checked integer math to get a tuple of (start, end) for the location in bytes for this ProgramHeader's data in the file. i.e.
src/segment.rs:118
↓ 6 callersMethodsection_data
Get the section data for a given [SectionHeader], alongside an optional compression context. This library does not do any decompression for the user,
src/elf_bytes.rs:439
↓ 6 callersMethodsection_headers
Get the parsed section headers table
src/elf_stream.rs:156
↓ 6 callersMethodsegments
Get this Elf object's zero-alloc lazy-parsing [SegmentTable] (if any). This table parses [ProgramHeader]s on demand and does not make any internal he
src/elf_bytes.rs:202
↓ 5 callersMethodget_raw
(&self, offset: usize)
src/string_table.rs:15
↓ 4 callersMethodindex
(&self)
src/gnu_symver.rs:177
↓ 4 callersMethodparse_u8_at
(self, offset: &mut usize, data: &[u8])
src/endian.rs:59
↓ 4 callersMethodsection_data_as_symbol_table
Helper method to get the section data for a given pair of [SectionHeader] for the symbol table and its linked strtab, and interpret them as [SymbolTab
src/elf_bytes.rs:632
↓ 3 callersMethodfind_common_data
Efficiently locate the set of common sections found in ELF files by doing a single iteration over the SectionHeaders table. This is useful for those
src/elf_bytes.rs:361
↓ 3 callersMethodget
(&self, offset: usize)
src/string_table.rs:32
↓ 3 callersMethodsection_data
Read the section data for the given [SectionHeader](SectionHeader). Returns both the secion data and an optional CompressionHeader. No compression he
src/elf_stream.rs:279
↓ 3 callersMethodsection_header_by_name
Find the parsed section header with the given name (if any). Returns a ParseError if the section headers string table can't be read Example to get t
src/elf_stream.rs:241
↓ 3 callersMethodsection_headers_with_strtab
Get this ELF object's [SectionHeaderTable] alongside its corresponding [StringTable]. This is useful if you want to know the string name of sections.
src/elf_bytes.rs:263
↓ 3 callersMethodsection_headers_with_strtab
Get an lazy-parsing table for the Section Headers in the file and its associated StringTable. The underlying ELF bytes backing the section headers ta
src/elf_stream.rs:174
↓ 3 callersMethodsegments
Get the parsed section headers table
src/elf_stream.rs:151
↓ 2 callersMethoddynamic_symbol_table
Get the ELF file's `.dynsym` and associated strtab (if any)
src/elf_bytes.rs:682
↓ 2 callersMethoddynamic_symbol_table
Get the dynamic symbol table (section of type SHT_DYNSYM) and its associated string table. The gABI specifies that ELF object files may have zero or
src/elf_stream.rs:382
↓ 2 callersMethodget_symbol_table_of_type
( &mut self, symtab_type: u32, )
src/elf_stream.rs:331
↓ 2 callersMethodis_hidden
(&self)
src/gnu_symver.rs:189
↓ 2 callersMethodparse_i32_at
(self, offset: &mut usize, data: &[u8])
src/endian.rs:75
↓ 2 callersMethodparse_i64_at
(self, offset: &mut usize, data: &[u8])
src/endian.rs:79
↓ 2 callersFunctionparse_ident
(data: &[u8])
src/file.rs:145
↓ 2 callersMethodsection_data_as_dynamic
Internal helper to get the section data for an SHT_DYNAMIC section as a .dynamic section table. See [ElfBytes::dynamic] or [ElfBytes::find_common_data
src/elf_bytes.rs:554
↓ 2 callersMethodsection_data_as_notes
Get the section data for a given [SectionHeader], and interpret it as an iterator over [Note](crate::note::Note)s Returns a ParseError if the section
src/elf_bytes.rs:532
↓ 2 callersMethodsection_data_as_relas
Get the section data for a given [SectionHeader], and interpret it as an iterator over relocations with addends [Rela](crate::relocation::Rela) Retur
src/elf_bytes.rs:509
↓ 2 callersMethodsection_data_as_strtab
Get the section data for a given [SectionHeader], and interpret it as a [StringTable] Returns a ParseError if the section is not of type [abi::SHT_ST
src/elf_bytes.rs:471
↓ 2 callersMethodsection_header_by_name
Parse section headers until one is found with the given name Example to get the ELF file's ABI-tag note ``` use elf::ElfBytes; use elf::endian::AnyEn
src/elf_bytes.rs:334
↓ 1 callersMethodclear_cache
(&mut self)
src/elf_stream.rs:734
↓ 1 callersMethoddynamic
Get the .dynamic section or [abi::PT_DYNAMIC] segment contents.
src/elf_bytes.rs:608
↓ 1 callersMethoddynamic
Get the .dynamic section/segment contents.
src/elf_stream.rs:389
↓ 1 callersFunctione_machine_to_str
(e_machine: u16)
src/to_str.rs:266
↓ 1 callersFunctione_osabi_to_str
(e_osabi: u8)
src/to_str.rs:10
↓ 1 callersFunctione_type_to_str
(e_type: u16)
src/to_str.rs:52
↓ 1 callersFunctionfind_phdrs
Find the location (if any) of the program headers in the given data buffer and take a subslice of their data and wrap it in a lazy-parsing SegmentTabl
src/elf_bytes.rs:113
↓ 1 callersFunctionfind_shdrs
Find the location (if any) of the section headers in the given data buffer and take a subslice of their data and wrap it in a lazy-parsing SectionHead
src/elf_bytes.rs:76
↓ 1 callersFunctiongnu_hash
Calculate the GNU hash for a given symbol name.
src/hash.rs:133
↓ 1 callersMethodis_little
(self)
src/endian.rs:159
↓ 1 callersMethodname_str
Parses the note's name bytes as a utf8 sequence, with any trailing NUL bytes removed
src/note.rs:181
↓ 1 callersFunctionp_type_to_str
(p_type: u32)
src/to_str.rs:513
↓ 1 callersFunctionparse_program_headers
( ehdr: &FileHeader<E>, reader: &mut CachingReader<S>, )
src/elf_stream.rs:77
↓ 1 callersFunctionparse_section_headers
Read the stream bytes backing the section headers table and parse them all into their Rust native type. Returns a [ParseError] if the data bytes for
src/elf_stream.rs:39
↓ 1 callersMethodsection_data_as_notes
Read the section data for the given [SectionHeader](SectionHeader) and interpret it in-place as a [NoteIterator](NoteIterator). Returns a [ParseError
src/elf_stream.rs:628
↓ 1 callersMethodsection_data_as_relas
Read the section data for the given [SectionHeader](SectionHeader) and interpret it in-place as a [RelaIterator](RelaIterator). Returns a [ParseError
src/elf_stream.rs:601
↓ 1 callersMethodsection_data_as_rels
Get the section data for a given [SectionHeader], and interpret it as an iterator over no-addend relocations [Rel](crate::relocation::Rel) Returns a
src/elf_bytes.rs:490
↓ 1 callersMethodsection_data_as_rels
Read the section data for the given [SectionHeader](SectionHeader) and interpret it in-place as a [RelIterator](RelIterator). Returns a [ParseError]
src/elf_stream.rs:578
↓ 1 callersMethodsection_data_as_strtab
Read the section data for the given [SectionHeader](SectionHeader) and interpret it in-place as a [StringTable](StringTable). Returns a [ParseError]
src/elf_stream.rs:315
↓ 1 callersMethodsegment_data
Get the segment's file data for a given segment/[ProgramHeader]. This is the segment's data as found in the file.
src/elf_bytes.rs:578
↓ 1 callersMethodsegment_data
Read the segment data for the given [Segment](ProgramHeader).
src/elf_stream.rs:650
↓ 1 callersMethodsegment_data_as_notes
Get the segment's file data for a given [ProgramHeader], and interpret it as an iterator over [Note](crate::note::Note)s Returns a ParseError if the
src/elf_bytes.rs:587
↓ 1 callersMethodsegment_data_as_notes
Read the segment data for the given [Segment](ProgramHeader) and interpret it in-place as a [NoteIterator](NoteIterator). Returns a [ParseError] if t
src/elf_stream.rs:662
↓ 1 callersFunctionsh_type_to_str
(sh_type: u32)
src/to_str.rs:463
↓ 1 callersFunctionst_bind_to_str
(st_bind: u8)
src/to_str.rs:561
↓ 1 callersFunctionst_symtype_to_str
(st_symtype: u8)
src/to_str.rs:539
↓ 1 callersFunctionst_vis_to_str
(st_vis: u8)
src/to_str.rs:579
↓ 1 callersMethodsymbol_table
Get the ELF file's `.symtab` and associated strtab (if any)
src/elf_bytes.rs:656
↓ 1 callersMethodsymbol_table
Get the symbol table (section of type SHT_SYMTAB) and its associated string table. The gABI specifies that ELF object files may have zero or one sect
src/elf_stream.rs:373
↓ 1 callersMethodsymbol_version_table
Locate the section data for the various GNU Symbol Versioning sections (if any) and return them in a [SymbolVersionTable] that which can interpret the
src/elf_bytes.rs:714
↓ 1 callersMethodsymbol_version_table
Read the section data for the various GNU Symbol Versioning sections (if any) and return them in a [SymbolVersionTable] that which can interpret them
src/elf_stream.rs:431
↓ 1 callersFunctionsysv_hash
Calculate the SysV hash value for a given symbol name.
src/hash.rs:55
Functionaarch64
()
src/elf_bytes.rs:1555
Functionaarch64
()
src/elf_stream.rs:1288
Functionarmhf
()
src/elf_bytes.rs:1560
Functionarmhf
()
src/elf_stream.rs:1293
Functionch_type_to_str
(ch_type: u32)
src/to_str.rs:597
Methodd_ptr
(&self)
src/dynamic.rs:41
Functiond_tag_to_str
(d_tag: i64)
src/to_str.rs:615
Methodd_val
(&self)
src/dynamic.rs:37
Functiondynamic
()
src/elf_bytes.rs:1239
Functiondynamic
()
src/elf_stream.rs:969
Functiondynamic_symbol_table
()
src/elf_bytes.rs:1298
Functiondynamic_symbol_table
()
src/elf_stream.rs:939
Functione_machine_to_human_str
(e_machine: u16)
src/to_str.rs:71
Functione_machine_to_string
(e_machine: u16)
src/to_str.rs:456
Functione_osabi_to_string
(e_osabi: u8)
src/to_str.rs:34
Functione_type_to_human_str
(e_type: u16)
src/to_str.rs:41
Functione_type_to_string
(e_type: u16)
src/to_str.rs:64
Functionfind_common_data
()
src/elf_bytes.rs:1023
Methodfmt
(&self, f: &mut core::fmt::Formatter<'_>)
src/parse.rs:110
Methodfrom
(err: core::str::Utf8Error)
src/parse.rs:176
Methodfrom_ei_data
(ei_data: u8)
src/endian.rs:151
Functionfuzz_i32_too_short
()
src/endian.rs:305
next →1–100 of 381, ranked by callers