From: H.J. Lu Date: Tue, 3 Oct 2017 21:54:55 +0000 (-0700) Subject: tile: Check SHARED instead PIC for SYSCALL_ERROR_NAME X-Git-Tag: glibc-2.27~758 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bcc4e4bb316cf5a29cd1488a582700a3f33cee2b;p=thirdparty%2Fglibc.git tile: Check SHARED instead PIC for SYSCALL_ERROR_NAME 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. --- diff --git a/ChangeLog b/ChangeLog index 8aff7d179c4..b2e9efa91f4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2017-10-03 H.J. Lu + + * sysdeps/unix/sysv/linux/tile/sysdep.h (SYSCALL_ERROR_NAME): + Check SHARED instead PIC. + 2017-10-03 Joseph Myers * sysdeps/ieee754/dbl-64/s_fmaf.c: Include . diff --git a/sysdeps/unix/sysv/linux/tile/sysdep.h b/sysdeps/unix/sysv/linux/tile/sysdep.h index fb1b89c2804..6e37fd2a085 100644 --- a/sysdeps/unix/sysv/linux/tile/sysdep.h +++ b/sysdeps/unix/sysv/linux/tile/sysdep.h @@ -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)