Skip to content

Commit

Permalink
[FIX] now all test pass on my local linux distro
Browse files Browse the repository at this point in the history
  • Loading branch information
Cr0a3 committed Oct 26, 2024
1 parent 3d364e4 commit 4f697b6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Obj/wrapper.rs
Original file line number Diff line number Diff line change
Expand Up @@ -346,12 +346,12 @@ impl ObjectBuilder {

for link in &self.links {
let (_, off, _, _, _, _) = syms.get(&link.from).expect("expectd valid link source");
let (_, _, to_sym, decl, _, _) = syms.get(&link.to).expect("expected valid link destination");
let (_, _, to_sym, _decl, _, _) = syms.get(&link.to).expect("expected valid link destination");

let addend = match decl {
let addend = 0;/*match decl {
Decl::Function => if self.triple.getCallConv()? == Target::CallConv::SystemV { 4 } else {0},
_ => 0,
};
};*/
let offset = -3;

obj.add_relocation(secText, Relocation {
Expand Down

0 comments on commit 4f697b6

Please sign in to comment.