Advertisement
Guest User

Untitled

a guest
Oct 12th, 2017
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. diff --git a/src/linker.c b/src/linker.c
  2. index 6cf1c87..3d18667 100644
  3. --- a/src/linker.c
  4. +++ b/src/linker.c
  5. @@ -278,7 +278,10 @@ static int process_dependencies(jq_state *jq, jv jq_origin, jv lib_origin, block
  6. // resolved has been freed
  7. if (nerrors == 0) {
  8. // Bind the library to the program
  9. - bk = block_bind_library(dep_def_block, bk, OP_IS_CALL_PSEUDO, as_str);
  10. + if (is_data)
  11. + bk = block_bind_library(dep_def_block, bk, OP_IS_CALL_PSEUDO, NULL);
  12. + else
  13. + bk = block_bind_library(dep_def_block, bk, OP_IS_CALL_PSEUDO, as_str);
  14. }
  15. }
  16. jv_free(as);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement