소스 검색

[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