forked from M-Labs/artiq-zynq
libdyld: fix pltrel_sz, remove debug output
This commit is contained in:
parent
90faeb6fa2
commit
d08f4552ab
@ -155,7 +155,7 @@ impl Image {
|
||||
hash_chain: nbucket..nbucket + nchain,
|
||||
rel: rel_off..rel_off + rel_sz,
|
||||
rela: rela_off..rela_off + rela_sz,
|
||||
pltrel: pltrel_off..pltrel_off + rela_sz,
|
||||
pltrel: pltrel_off..pltrel_off + pltrel_sz,
|
||||
})
|
||||
}
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
use alloc::string::String;
|
||||
use log::{debug, trace};
|
||||
use log::trace;
|
||||
use super::{
|
||||
Arch,
|
||||
elf::*,
|
||||
@ -92,7 +92,6 @@ pub fn relocate<R: Relocatable>(
|
||||
arch: Arch, lib: &Library,
|
||||
rel: &R, resolve: &dyn Fn(&[u8]) -> Option<Elf32_Word>
|
||||
) -> Result<(), Error> {
|
||||
// debug!("rel r_offset={:08X} r_info={:08X} r_addend={:08X}", rel.offset(), rel.r_info, rela.r_addend);
|
||||
let sym;
|
||||
if rel.sym_info() == 0 {
|
||||
sym = None;
|
||||
@ -132,6 +131,5 @@ pub fn relocate<R: Relocatable>(
|
||||
}
|
||||
}
|
||||
|
||||
debug!("rel_type={:?} write at {:08X} value {:08X}", rel_type, rel.offset(), value);
|
||||
lib.image.write(rel.offset(), value)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user