From c58edf959877a592f467bfa3829db1039bee370d Mon Sep 17 00:00:00 2001 From: bunnie Date: Fri, 28 Feb 2025 16:33:58 +0800 Subject: [PATCH] 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. --- tools/src/bin/copy-object.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/src/bin/copy-object.rs b/tools/src/bin/copy-object.rs index 64417337f..78b157d37 100644 --- a/tools/src/bin/copy-object.rs +++ b/tools/src/bin/copy-object.rs @@ -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); });