mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-30 07:14:46 +00:00
Make debug output and linking properly pic/pie. Remove non-pic relocation from linker
This commit is contained in:
parent
7d34c88e64
commit
379904fcc5
3 changed files with 2 additions and 5 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue