Fix incorrect relocations for x86.
These calls were not going through the PLT like they should have been.
Bug: 16853291
Change-Id: Id70488b077256a70137c4417f21be2c2d1d4341c
diff --git a/libc/tools/gensyscalls.py b/libc/tools/gensyscalls.py
index 96583d6..5a2d97b 100755
--- a/libc/tools/gensyscalls.py
+++ b/libc/tools/gensyscalls.py
@@ -170,7 +170,7 @@
jb 1f
negl %%eax
pushl %%eax
- call __set_errno
+ call PIC_PLT(__set_errno)
addl $4, %%esp
1:
"""
@@ -192,7 +192,7 @@
jb 1f
negl %%eax
movl %%eax, %%edi
- call __set_errno
+ call PIC_PLT(__set_errno)
1:
ret
END(%(func)s)