#![cfg_attr(not(feature = "std"), no_std)]
#![forbid(unsafe_code)]
#![warn(missing_docs)]
extern crate alloc;
pub mod builder;
pub mod dynamic;
pub mod elf;
pub mod elf_file;
pub mod error;
pub mod header;
pub mod ident;
pub mod notes;
mod parse_utils;
pub mod program;
pub mod reader;
pub mod reloc;
pub mod section;
pub mod strtab;
pub mod symbol;
pub mod tls;
pub mod validation;
pub use builder::ElfBuilder;
pub use dynamic::{DynTag, DynamicEntry, DynamicTable};
pub use elf::ElfImage;
pub use elf_file::ElfFile;
pub use error::{Error, ErrorKind, Result};
pub use header::{ElfHeader, ElfHeaders, ElfType, Machine};
pub use ident::{ElfClass, ElfIdent, Endian, OsAbi};
pub use notes::Note;
pub use program::{ProgramHeader, Segment, SegmentFlags, SegmentType};
pub use reader::{ReadAt, SliceReader, VecReader};
pub use reloc::{RelocKind, RelocationEntry, RelocationSection};
pub use section::{Section, SectionFlags, SectionHeader, SectionType};
pub use strtab::StringTable;
pub use symbol::{Symbol, SymbolBind, SymbolTable, SymbolType, SymbolVisibility};
pub use tls::TlsInfo;
#[cfg(feature = "std")]
pub use reader::FileReader;
#[expect(
clippy::cast_possible_truncation,
reason = "ELF32 header fields are defined as 32 bits wide"
)]
pub(crate) const fn low32(value: u64) -> u32 {
value as u32
}