浏览代码

[LibOS] syscallas.S: Reference shim_table through GOT

libsysdb.so is compiled as pic.
Isaku Yamahata 6 年之前
父节点
当前提交
08d0866850
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      LibOS/shim/src/syscallas.S

+ 1 - 1
LibOS/shim/src/syscallas.S

@@ -45,7 +45,7 @@ syscalldb:
         cmp $LIBOS_SYSCALL_BOUND, %rax
         jae isundef
 
-        leaq shim_table(%rip), %rbx
+        movq shim_table@GOTPCREL(%rip), %rbx
         movq (%rbx,%rax,8), %rbx
         cmp $0, %rbx
         je isundef