summaryrefslogtreecommitdiffstats
path: root/libc/arch-x86_64/syscalls/truncate.S
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/arch-x86_64/syscalls/truncate.S
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/arch-x86_64/syscalls/truncate.S')
-rw-r--r--libc/arch-x86_64/syscalls/truncate.S2
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/arch-x86_64/syscalls/truncate.S b/libc/arch-x86_64/syscalls/truncate.S
index db2121f..d680e2d 100644
--- a/libc/arch-x86_64/syscalls/truncate.S
+++ b/libc/arch-x86_64/syscalls/truncate.S
@@ -9,7 +9,7 @@ ENTRY(truncate)
jb 1f
negl %eax
movl %eax, %edi
- call __set_errno
+ call PIC_PLT(__set_errno)
1:
ret
END(truncate)