Skip to content
Snippets Groups Projects
Commit 112ced7c authored by Michael Hauspie's avatar Michael Hauspie
Browse files

Fix a write by a write_all in link command

parent 58f8f8f2
No related branches found
No related tags found
No related merge requests found
......@@ -18,9 +18,6 @@ use elf::endian::{AnyEndian, EndianParse};
use elf::ElfBytes;
use std::path::PathBuf;
// use pip_mpu_relocate::reloc::RelIter;
// use pip_mpu_relocate::relocate::relocate;
// use pip_mpu_relocate::symbols::SymbolsQuery;
use std::io::{BufWriter, Seek, Write};
use crate::rel_iter::{RelError, RelIter};
......@@ -114,8 +111,7 @@ fn export_user_info<'data, T: Write, E: EndianParse>(
let symbol = symbol?;
let val = symbol.st_value as u32;
let bytes = val.to_le_bytes();
eprintln!("Writing {:x} ({} bytes)", val, symbol.st_size);
output_file.write(&bytes)?;
output_file.write_all(&bytes)?;
Ok(())
})?;
Ok(())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment