forked from M-Labs/nac3
1
0
Fork 0

dyld: reduce verbosity

This commit is contained in:
Sebastien Bourdeauducq 2020-06-08 17:57:13 +08:00
parent b1161a0f71
commit c980b3e634
1 changed files with 4 additions and 4 deletions

View File

@ -5,7 +5,7 @@ extern crate log;
use core::{fmt, str, convert}; use core::{fmt, str, convert};
use alloc::string::String; use alloc::string::String;
use log::{info, trace}; use log::{debug, trace};
use elf::*; use elf::*;
pub mod elf; pub mod elf;
@ -162,7 +162,7 @@ pub fn load(
// 1 image for all segments // 1 image for all segments
let mut image = image::Image::new(image_size, image_align) let mut image = image::Image::new(image_size, image_align)
.map_err(|_| "cannot allocate target image")?; .map_err(|_| "cannot allocate target image")?;
info!("ELF target: {} bytes, align to {:X}, allocated at {:08X}", image_size, image_align, image.ptr() as usize); debug!("ELF target: {} bytes, align to {:X}, allocated at {:08X}", image_size, image_align, image.ptr() as usize);
// LOAD // LOAD
for phdr in file.program_headers() { for phdr in file.program_headers() {
@ -185,8 +185,8 @@ pub fn load(
let dyn_range = file.dyn_header_vaddr() let dyn_range = file.dyn_header_vaddr()
.ok_or("cannot find a dynamic header")?; .ok_or("cannot find a dynamic header")?;
let dyn_section = image.dyn_section(dyn_range.clone())?; let dyn_section = image.dyn_section(dyn_range.clone())?;
info!("Relocating {} rela, {} rel, {} pltrel", debug!("Relocating {} rela, {} rel, {} pltrel",
dyn_section.rela.len(), dyn_section.rel.len(), dyn_section.pltrel.len()); dyn_section.rela.len(), dyn_section.rel.len(), dyn_section.pltrel.len());
let lib = Library { let lib = Library {
image, image,
dyn_section, dyn_section,