Make debug output and linking properly pic/pie. Remove non-pic relocation from linker

This commit is contained in:
Brendan Hansknecht 2021-08-27 23:21:48 -07:00
parent 7d34c88e64
commit 379904fcc5
3 changed files with 2 additions and 5 deletions

View file

@ -1183,11 +1183,6 @@ pub fn surgery(matches: &ArgMatches) -> io::Result<i32> {
}
target_offset - base_offset + rel.1.addend()
}
RelocationKind::Absolute => {
let target_vaddr = target_offset + new_segment_vaddr as i64;
println!("Target: 0x{:x}", target_vaddr);
target_vaddr
}
x => {
println!("Relocation Kind not yet support: {:?}", x);
return Ok(-1);