add a zig-based elf linker test

This commit is contained in:
Folkert 2022-09-25 13:46:03 +02:00
parent 9ba0103715
commit 65fd6e9e86
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C
3 changed files with 150 additions and 1 deletions

View file

@ -195,10 +195,14 @@ fn preprocess(
println!("Targeting: {}", target);
}
let endianness = target
.endianness()
.unwrap_or(target_lexicon::Endianness::Little);
match target.binary_format {
target_lexicon::BinaryFormat::Elf => {
crate::elf::preprocess_elf(
target,
endianness,
host_exe_path,
metadata_path,
preprocessed_path,