Browse Source

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

libsysdb.so is complied as pic so GOT should be used.
Isaku Yamahata 6 years ago
parent
commit
6e0d803285
1 changed files with 1 additions and 1 deletions
  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