]> sourceware.org Git - glibc.git/commitdiff
tile: Check SHARED instead PIC for SYSCALL_ERROR_NAME
authorH.J. Lu <hjl.tools@gmail.com>
Tue, 3 Oct 2017 21:54:55 +0000 (14:54 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Tue, 3 Oct 2017 21:54:55 +0000 (14:54 -0700)
For static PIE code, PIC is defined and SHARED is undefined.  We
should check SHARED instead PIC for SYSCALL_ERROR_NAME.

* sysdeps/unix/sysv/linux/tile/sysdep.h (SYSCALL_ERROR_NAME):
Check SHARED instead PIC.

ChangeLog
sysdeps/unix/sysv/linux/tile/sysdep.h

index 8aff7d179c42a38d6baa1c43a6ec2bf3b19b6a7c..b2e9efa91f436e153ad2682004d70343b9f874e0 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * sysdeps/unix/sysv/linux/tile/sysdep.h (SYSCALL_ERROR_NAME):
+       Check SHARED instead PIC.
+
 2017-10-03  Joseph Myers  <joseph@codesourcery.com>
 
        * sysdeps/ieee754/dbl-64/s_fmaf.c: Include <libm-alias-float.h>.
index fb1b89c28042f3f43d6bb016c467e019c9f53275..6e37fd2a0857dc8b866c4dd215957a71474109d8 100644 (file)
@@ -42,7 +42,7 @@
 
 #define ret  jrp lr
 
-#ifndef PIC
+#ifndef SHARED
 /* For static code, on error jump to __syscall_error directly. */
 # define SYSCALL_ERROR_NAME __syscall_error
 #elif IS_IN (libc) || IS_IN (libpthread)
This page took 0.070584 seconds and 5 git commands to generate.