Skip to content

Commit

Permalink
[FIX] fixing obj addends
Browse files Browse the repository at this point in the history
  • Loading branch information
Cr0a3 committed Oct 26, 2024
1 parent 5b26599 commit 3d364e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Obj/wrapper.rs
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ impl ObjectBuilder {
let (_, _, to_sym, decl, _, _) = syms.get(&link.to).expect("expected valid link destination");

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

0 comments on commit 3d364e4

Please sign in to comment.