ソースを参照

LibOS: syscallas.S should use GOTPCREL call instead of absolute call

libsysdb.so is complied as pic so GOT should be used.
Isaku Yamahata 7 年 前
コミット
6e0d803285
1 ファイル変更1 行追加1 行削除
  1. 1 1
      LibOS/shim/src/syscallas.S

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

@@ -100,7 +100,7 @@ ret:
 isundef:
 #ifdef DEBUG
         mov %rax, %rdi
-        call debug_unsupp
+        call *debug_unsupp@GOTPCREL(%rip)
 #endif
         movq $-38, %rax
         jmp ret