From 6e0d803285fd30399581fa3bad50a7efafd08a0d Mon Sep 17 00:00:00 2001 From: Isaku Yamahata Date: Tue, 4 Dec 2018 11:17:34 -0800 Subject: [PATCH] LibOS: syscallas.S should use GOTPCREL call instead of absolute call libsysdb.so is complied as pic so GOT should be used. --- LibOS/shim/src/syscallas.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LibOS/shim/src/syscallas.S b/LibOS/shim/src/syscallas.S index a432d915..534d6776 100644 --- a/LibOS/shim/src/syscallas.S +++ b/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