or1k: Fix compiling with PIC and latest binutils use PLT for __syscall_error
commit0fcfaee3e1e4575570ccecae087f920d29ff936c
authorStafford Horne <shorne@gmail.com>
Mon, 26 Aug 2019 20:58:44 +0000 (27 05:58 +0900)
committerWaldemar Brodkorb <wbx@openadk.org>
Sat, 5 Oct 2019 16:13:23 +0000 (5 18:13 +0200)
tree6621733017611a59f95fb1414edbfc28751b17c0
parent3538ba34e0e415105d3fe235605e6dba1597ad98
or1k: Fix compiling with PIC and latest binutils use PLT for __syscall_error

This symbol was causing a build failure with the new toolchain.  It
looks like it has always been wrong.

The main issue was checking for PIC rather than __PIC__.

Remove all PSEUDO_* macros and ther SYSCALL_ERROR_NAME macro as they are
not needed by uclibc-ng, they are used in glibc for building up syscalls
there, but not here.

Fixes error:
  /opt/shorne/software/or1k-linux/bin/../lib/gcc/or1k-linux/9.0.1/../../../../or1k-linux/bin/ld: libc/libc_so.a(or1k_clone.os): pc-relative relocation against dynamic symbol __syscall_error
  /opt/shorne/software/or1k-linux/bin/../lib/gcc/or1k-linux/9.0.1/../../../../or1k-linux/bin/ld: final link failed: bad value

Signed-off-by: Stafford Horne <shorne@gmail.com>
libc/sysdeps/linux/or1k/or1k_clone.S
libc/sysdeps/linux/or1k/sysdep.h