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.
This commit is contained in:
H.J. Lu 2017-10-03 14:54:55 -07:00
parent 7f1cbdf8ed
commit bcc4e4bb31
2 changed files with 6 additions and 1 deletions

View File

@ -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>.

View 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)