use the loader version of copy object call for copying the loader

this handles the special case of not inserting RAM-based data segments into
the ROM.
This commit is contained in:
bunnie 2025-02-28 16:33:58 +08:00
parent 67e501328d
commit c58edf9598

View file

@ -25,7 +25,7 @@ fn main() {
eprintln!("Specify an output path, or change the suffix of your input file from \".bin\"");
process::exit(1);
}
let pd = elf::read_program(&input_filename).unwrap_or_else(|e| {
let pd = elf::read_loader(&input_filename).unwrap_or_else(|e| {
eprintln!("Unable to read input file: {}", e);
process::exit(1);
});