summaryrefslogtreecommitdiffstats
path: root/libc/tools/gensyscalls.py
diff options
context:
space:
mode:
authorDan Albert <danalbert@google.com>2014-08-07 10:46:42 -0700
committerDan Albert <danalbert@google.com>2014-08-07 16:21:47 -0700
commit512bc5232689bec9c763c8247b59de970096ff87 (patch)
treee51f699b4bad5d59ea915bbea29dc4801eb5409c /libc/tools/gensyscalls.py
parentd994622ebf2c4b7e918d9e1f1840f9df88ee7222 (diff)
downloadbionic-512bc5232689bec9c763c8247b59de970096ff87.zip
bionic-512bc5232689bec9c763c8247b59de970096ff87.tar.gz
bionic-512bc5232689bec9c763c8247b59de970096ff87.tar.bz2
Fix incorrect relocations for x86.
These calls were not going through the PLT like they should have been. Bug: 16853291 Change-Id: Id70488b077256a70137c4417f21be2c2d1d4341c
Diffstat (limited to 'libc/tools/gensyscalls.py')
-rwxr-xr-xlibc/tools/gensyscalls.py4
1 files changed, 2 insertions, 2 deletions
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 @@ x86_call = """\
jb 1f
negl %%eax
pushl %%eax
- call __set_errno
+ call PIC_PLT(__set_errno)
addl $4, %%esp
1:
"""
@@ -192,7 +192,7 @@ x86_64_call = """\
jb 1f
negl %%eax
movl %%eax, %%edi
- call __set_errno
+ call PIC_PLT(__set_errno)
1:
ret
END(%(func)s)