Просмотр исходного кода

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 лет назад
Родитель
Сommit
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:
 isundef:
 #ifdef DEBUG
 #ifdef DEBUG
         mov %rax, %rdi
         mov %rax, %rdi
-        call debug_unsupp
+        call *debug_unsupp@GOTPCREL(%rip)
 #endif
 #endif
         movq $-38, %rax
         movq $-38, %rax
         jmp ret
         jmp ret