Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/cole14/rust-elf
/ functions
Functions
381 in github.com/cole14/rust-elf
⨍
Functions
381
◇
Types & classes
62
↓ 68 callers
Method
parse_u32_at
(self, offset: &mut usize, data: &[u8])
src/endian.rs:67
↓ 52 callers
Function
test_parse_for
( endian: E, class: Class, expected: P, )
src/parse.rs:345
↓ 50 callers
Method
get
Parse the element at `index` in the table.
src/parse.rs:304
↓ 29 callers
Method
get_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 callers
Method
parse_u64_at
(self, offset: &mut usize, data: &[u8])
src/endian.rs:71
↓ 26 callers
Method
get_bytes
(self, range: Range<usize>)
src/parse.rs:336
↓ 23 callers
Method
iter
Get a lazy-parsing iterator for the table's bytes
src/parse.rs:289
↓ 19 callers
Method
parse_u16_at
(self, offset: &mut usize, data: &[u8])
src/endian.rs:63
↓ 16 callers
Method
read_bytes
(&mut self, start: usize, end: usize)
src/elf_stream.rs:703
↓ 15 callers
Method
is_empty
Returns whether the table is empty (contains zero elements).
src/parse.rs:299
↓ 15 callers
Method
next
(&mut self)
src/gnu_symver.rs:39
↓ 13 callers
Method
find
Use the hash table to find the symbol table entry with the given name and hash.
src/hash.rs:101
↓ 11 callers
Method
section_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 callers
Method
get_requirement
( &self, sym_idx: usize, )
src/gnu_symver.rs:69
↓ 9 callers
Method
len
Returns the number of elements of type P in the table.
src/parse.rs:294
↓ 8 callers
Method
get_bytes
(&self, range: Range<usize>)
src/elf_stream.rs:708
↓ 8 callers
Method
load_bytes
(&mut self, range: Range<usize>)
src/elf_stream.rs:716
↓ 7 callers
Function
verify_ident
(buf: &[u8])
src/file.rs:124
↓ 6 callers
Method
get_definition
( &self, sym_idx: usize, )
src/gnu_symver.rs:109
↓ 6 callers
Method
get_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 callers
Method
section_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 callers
Method
section_headers
Get the parsed section headers table
src/elf_stream.rs:156
↓ 6 callers
Method
segments
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 callers
Method
get_raw
(&self, offset: usize)
src/string_table.rs:15
↓ 4 callers
Method
index
(&self)
src/gnu_symver.rs:177
↓ 4 callers
Method
parse_u8_at
(self, offset: &mut usize, data: &[u8])
src/endian.rs:59
↓ 4 callers
Method
section_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 callers
Method
find_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 callers
Method
get
(&self, offset: usize)
src/string_table.rs:32
↓ 3 callers
Method
section_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 callers
Method
section_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 callers
Method
section_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 callers
Method
section_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 callers
Method
segments
Get the parsed section headers table
src/elf_stream.rs:151
↓ 2 callers
Method
dynamic_symbol_table
Get the ELF file's `.dynsym` and associated strtab (if any)
src/elf_bytes.rs:682
↓ 2 callers
Method
dynamic_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 callers
Method
get_symbol_table_of_type
( &mut self, symtab_type: u32, )
src/elf_stream.rs:331
↓ 2 callers
Method
is_hidden
(&self)
src/gnu_symver.rs:189
↓ 2 callers
Method
parse_i32_at
(self, offset: &mut usize, data: &[u8])
src/endian.rs:75
↓ 2 callers
Method
parse_i64_at
(self, offset: &mut usize, data: &[u8])
src/endian.rs:79
↓ 2 callers
Function
parse_ident
(data: &[u8])
src/file.rs:145
↓ 2 callers
Method
section_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 callers
Method
section_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 callers
Method
section_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 callers
Method
section_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 callers
Method
section_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 callers
Method
clear_cache
(&mut self)
src/elf_stream.rs:734
↓ 1 callers
Method
dynamic
Get the .dynamic section or [abi::PT_DYNAMIC] segment contents.
src/elf_bytes.rs:608
↓ 1 callers
Method
dynamic
Get the .dynamic section/segment contents.
src/elf_stream.rs:389
↓ 1 callers
Function
e_machine_to_str
(e_machine: u16)
src/to_str.rs:266
↓ 1 callers
Function
e_osabi_to_str
(e_osabi: u8)
src/to_str.rs:10
↓ 1 callers
Function
e_type_to_str
(e_type: u16)
src/to_str.rs:52
↓ 1 callers
Function
find_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 callers
Function
find_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 callers
Function
gnu_hash
Calculate the GNU hash for a given symbol name.
src/hash.rs:133
↓ 1 callers
Method
is_little
(self)
src/endian.rs:159
↓ 1 callers
Method
name_str
Parses the note's name bytes as a utf8 sequence, with any trailing NUL bytes removed
src/note.rs:181
↓ 1 callers
Function
p_type_to_str
(p_type: u32)
src/to_str.rs:513
↓ 1 callers
Function
parse_program_headers
( ehdr: &FileHeader<E>, reader: &mut CachingReader<S>, )
src/elf_stream.rs:77
↓ 1 callers
Function
parse_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 callers
Method
section_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 callers
Method
section_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 callers
Method
section_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 callers
Method
section_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 callers
Method
section_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 callers
Method
segment_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 callers
Method
segment_data
Read the segment data for the given [Segment](ProgramHeader).
src/elf_stream.rs:650
↓ 1 callers
Method
segment_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 callers
Method
segment_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 callers
Function
sh_type_to_str
(sh_type: u32)
src/to_str.rs:463
↓ 1 callers
Function
st_bind_to_str
(st_bind: u8)
src/to_str.rs:561
↓ 1 callers
Function
st_symtype_to_str
(st_symtype: u8)
src/to_str.rs:539
↓ 1 callers
Function
st_vis_to_str
(st_vis: u8)
src/to_str.rs:579
↓ 1 callers
Method
symbol_table
Get the ELF file's `.symtab` and associated strtab (if any)
src/elf_bytes.rs:656
↓ 1 callers
Method
symbol_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 callers
Method
symbol_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 callers
Method
symbol_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 callers
Function
sysv_hash
Calculate the SysV hash value for a given symbol name.
src/hash.rs:55
Function
aarch64
()
src/elf_bytes.rs:1555
Function
aarch64
()
src/elf_stream.rs:1288
Function
armhf
()
src/elf_bytes.rs:1560
Function
armhf
()
src/elf_stream.rs:1293
Function
ch_type_to_str
(ch_type: u32)
src/to_str.rs:597
Method
d_ptr
(&self)
src/dynamic.rs:41
Function
d_tag_to_str
(d_tag: i64)
src/to_str.rs:615
Method
d_val
(&self)
src/dynamic.rs:37
Function
dynamic
()
src/elf_bytes.rs:1239
Function
dynamic
()
src/elf_stream.rs:969
Function
dynamic_symbol_table
()
src/elf_bytes.rs:1298
Function
dynamic_symbol_table
()
src/elf_stream.rs:939
Function
e_machine_to_human_str
(e_machine: u16)
src/to_str.rs:71
Function
e_machine_to_string
(e_machine: u16)
src/to_str.rs:456
Function
e_osabi_to_string
(e_osabi: u8)
src/to_str.rs:34
Function
e_type_to_human_str
(e_type: u16)
src/to_str.rs:41
Function
e_type_to_string
(e_type: u16)
src/to_str.rs:64
Function
find_common_data
()
src/elf_bytes.rs:1023
Method
fmt
(&self, f: &mut core::fmt::Formatter<'_>)
src/parse.rs:110
Method
from
(err: core::str::Utf8Error)
src/parse.rs:176
Method
from_ei_data
(ei_data: u8)
src/endian.rs:151
Function
fuzz_i32_too_short
()
src/endian.rs:305
next →
1–100 of 381, ranked by callers