mirror of
https://github.com/rui314/mold.git
synced 2026-10-28 16:45:11 +08:00
The ELF and Mach-O linkers each had a copy of the same response file reader. They now share mold-common's expand_response_files. Its macho flag keeps the Mach-O linker's one difference: an argument starting with @rpath, @loader_path or @executable_path is a dylib path, not a response file. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
36 lines
759 B
Rust
36 lines
759 B
Rust
//! Code that mold's linkers share. Nothing here depends on the format of
|
|
//! object files.
|
|
|
|
pub mod archive_file;
|
|
pub mod bits;
|
|
pub mod bytes;
|
|
pub mod cityhash;
|
|
pub mod compress;
|
|
pub mod concurrent_map;
|
|
pub mod demangle;
|
|
pub mod endian;
|
|
pub mod error;
|
|
pub mod glob;
|
|
pub mod hyperloglog;
|
|
pub mod jobs;
|
|
pub mod leb128;
|
|
pub mod mapped_file;
|
|
pub mod mem;
|
|
pub mod output_file;
|
|
pub mod parallel;
|
|
pub mod path;
|
|
pub mod perf;
|
|
mod prefetch;
|
|
pub mod record;
|
|
pub mod response_file;
|
|
pub mod siphash;
|
|
pub mod subprocess;
|
|
pub mod tar;
|
|
pub mod worker_local;
|
|
|
|
pub use prefetch::prefetch;
|
|
|
|
/// The git commit that mold is built from, or None if the source tree has
|
|
/// no git metadata, as in a source tarball.
|
|
pub const GIT_HASH: Option<&str> = option_env!("MOLD_GIT_HASH");
|