Explorar o código

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

libsysdb.so is complied as pic so GOT should be used.
Isaku Yamahata %!s(int64=7) %!d(string=hai) anos
pai
achega
6e0d803285
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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